diff options
author | Nat <natcl@hotmail.com> | 2007-08-02 16:54:58 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-08-02 16:54:58 (GMT) |
commit | 1f51b06852e037c5a3a787133987aed95b0616cd (patch) | |
tree | ed230a001055374ddc643d10cd746bd969569845 /Edit/MainWindow.py | |
parent | 587b41123159b09fd5a8113c85e1afc8f5ca33c9 (diff) |
Test
Diffstat (limited to 'Edit/MainWindow.py')
-rw-r--r-- | Edit/MainWindow.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py index 13eedc1..cdefca8 100644 --- a/Edit/MainWindow.py +++ b/Edit/MainWindow.py @@ -1732,9 +1732,10 @@ class MainWindow( SubActivity ): #----------------------------------- def handleKeyboardShortcuts(self,event): key = event.hardware_keycode + keyval = event.keyval # backspace and del keys - if key == 22 or key == 107: + if keyval == 22 or key == 107: if self.context == CONTEXT.PAGE: self.pageDelete() if self.context == CONTEXT.TRACK: self.trackDelete() if self.context == CONTEXT.NOTE: self.noteDelete() @@ -1756,11 +1757,11 @@ class MainWindow( SubActivity ): if key == 102: self.trackInterface.noteStepDuration(1) else: # up/down arrows pitch - if key == 98: self.trackInterface.noteStepPitch(1) - if key == 104: self.trackInterface.noteStepPitch(-1) + if keyval == gtk.keysyms.uparrow: self.trackInterface.noteStepPitch(1) + if keyval == gtk.keysyms.downarrow: self.trackInterface.noteStepPitch(-1) # left/right arrows duration - if key == 100: self.trackInterface.noteStepOnset(-1) - if key == 102: self.trackInterface.noteStepOnset(1) + if keyval == gtk.keysyms.leftarrow: self.trackInterface.noteStepOnset(-1) + if keyval == gtk.keysyms.rightarrow: self.trackInterface.noteStepOnset(1) def onKeyPress(self,widget,event): |