Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bounce.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-10-02 01:23:35 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-10-02 01:23:35 (GMT)
commitca8de607060fce0614fc0c412a9fea189f6e180d (patch)
treeff033cec0c987122050d2a971b381cb673f3f51a /bounce.py
parentb5b52d3da8bd6b9e7aef5b5ffc4b7f79fdcfe38a (diff)
add keypad buttons
Diffstat (limited to 'bounce.py')
-rw-r--r--bounce.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bounce.py b/bounce.py
index f072cb6..b41fb7d 100644
--- a/bounce.py
+++ b/bounce.py
@@ -267,9 +267,9 @@ class Bounce():
def _keypress_cb(self, area, event):
''' Keypress: moving the slides with the arrow keys '''
k = gtk.gdk.keyval_name(event.keyval)
- if k in ['h', 'Left']:
+ if k in ['h', 'Left', 'KP_Left']:
self.dx = -5
- elif k in ['l', 'Right']:
+ elif k in ['l', 'Right', 'KP_Right']:
self.dx = 5
else:
self.dx = 0