Changeset 9630


Ignore:
Timestamp:
12/12/09 05:39:29 (2 years ago)
Author:
waxhead
Message:

Fixes the fix for ticket #750 the "double tab" effect of Padre::Main::key_up being called twice

Location:
trunk/Padre/lib/Padre
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Document/Perl.pm

    r9600 r9630  
    13361336 
    13371337    my $key = $event->GetUnicodeKey; 
    1338  
     1338         
    13391339    my $pos   = $editor->GetCurrentPos; 
    13401340    my $line  = $editor->LineFromPosition($pos); 
  • trunk/Padre/lib/Padre/Wx/Editor.pm

    r9624 r9630  
    9191    # Setup EVT_KEY_UP for smart highlighting and non-destructive CTRL-L 
    9292    Wx::Event::EVT_KEY_UP( $self, \&on_key_up ); 
    93  
     93     
    9494    if ( $config->editor_wordwrap ) { 
    9595        $self->SetWrapMode(Wx::wxSTC_WRAP_WORD); 
     
    208208            $self->CmdKeyExecute(Wx::wxSTC_CMD_LINEDELETE); 
    209209        } 
     210        $event->Skip(0);  # done processing this nothing more to do 
    210211        return; 
    211212    } 
     
    217218 
    218219    $self->main->key_up($event); 
    219  
    220220} 
    221221 
  • trunk/Padre/lib/Padre/Wx/Main.pm

    r9629 r9630  
    51715171    my $code  = $event->GetKeyCode; 
    51725172 
     5173     
    51735174    # Remove the bit ( Wx::wxMOD_META) set by Num Lock being pressed on Linux 
    51745175    # () needed after the constants as they are functions in Perl and 
     
    52075208        #       } 
    52085209    } 
    5209     $event->Skip; 
     5210    $event->Skip(0); 
    52105211    return; 
    52115212} 
Note: See TracChangeset for help on using the changeset viewer.