Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit
diff options
context:
space:
mode:
Diffstat (limited to 'Edit')
-rw-r--r--Edit/MainWindow.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py
index 77f7d93..c083dff 100644
--- a/Edit/MainWindow.py
+++ b/Edit/MainWindow.py
@@ -1249,18 +1249,17 @@ class MainWindow( SubActivity ):
#-----------------------------------
def handleKeyboardShortcuts(self,event):
key = event.hardware_keycode
-
+
# backspace and del keys
if key == 22 or key == 107:
- self.noteDelete()
- self.trackDelete()
- if self.context == CONTEXT.PAGE:
- self.pageDelete()
+ if self.context == CONTEXT.PAGE: self.pageDelete()
+ if self.context == CONTEXT.TRACK: self.trackDelete()
+ if self.context == CONTEXT.NOTE: self.noteDelete()
# plus key
if key == 21:
self.pageAdd()
- # duplicate ctrl-D
- if event.state == gtk.gdk.CONTROL_MASK and key == 40:
+ # duplicate ctrl-c
+ if event.state == gtk.gdk.CONTROL_MASK and key == 54:
if self.context == CONTEXT.PAGE:
self.pageDuplicate()
elif self.context == CONTEXT.TRACK: