diff options
author | Oli2 <olivier.belanger@umontreal.ca> | 2007-03-12 22:48:35 (GMT) |
---|---|---|
committer | Oli2 <olivier.belanger@umontreal.ca> | 2007-03-12 22:48:35 (GMT) |
commit | 9fba7d358e7b05c32b275f634035f510f5844273 (patch) | |
tree | 33fd065af1df508dae0f9a75e44c51a8298b8a85 /Edit | |
parent | aadf6f00b1cff93a98e6bb41bc3acee4e45c0068 (diff) |
arrow keycode
Diffstat (limited to 'Edit')
-rw-r--r-- | Edit/MainWindow.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py index ab7bd42..fe7ba0f 100644 --- a/Edit/MainWindow.py +++ b/Edit/MainWindow.py @@ -1250,25 +1250,24 @@ class MainWindow( SubActivity ): def handleKeyboardShortcuts(self,event): key = event.hardware_keycode # backspace and del keys - print key if key == 22 or key == 107: self.noteDelete() self.trackDelete() if event.state == gtk.gdk.SHIFT_MASK: # up/down arrows volume - if key == 98: self.trackInterface.noteStepVolume(0.1) - if key == 104: self.trackInterface.noteStepVolume(-0.1) + if key == 111: self.trackInterface.noteStepVolume(0.1) + if key == 116: self.trackInterface.noteStepVolume(-0.1) # left/right arrows onset - if key == 100: self.trackInterface.noteStepDuration(-1) - if key == 102: self.trackInterface.noteStepDuration(1) + if key == 113: self.trackInterface.noteStepDuration(-1) + if key == 114: self.trackInterface.noteStepDuration(1) else: # up/down arrows pitch - if key == 98: self.trackInterface.noteStepPitch(1) - if key == 104: self.trackInterface.noteStepPitch(-1) + if key == 111: self.trackInterface.noteStepPitch(1) + if key == 116: self.trackInterface.noteStepPitch(-1) # left/right arrows duration - if key == 100: self.trackInterface.noteStepOnset(-1) - if key == 102: self.trackInterface.noteStepOnset(1) + if key == 113: self.trackInterface.noteStepOnset(-1) + if key == 114: self.trackInterface.noteStepOnset(1) def onKeyPress(self,widget,event): |