From 5f4700674e3b4e3685f8339f807923bf2425a40c Mon Sep 17 00:00:00 2001 From: Raphael Ackermann Date: Fri, 19 Mar 2010 14:42:42 +0000 Subject: [PATCH] 0002857: Spacebar doesn't activate embedded edit buttons svn: r14868 --- src/plugins/view/relview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/view/relview.py b/src/plugins/view/relview.py index ae06d3438..293491291 100644 --- a/src/plugins/view/relview.py +++ b/src/plugins/view/relview.py @@ -96,6 +96,7 @@ _SDATA_START = 2 _SDATA_STOP = 4 _RETURN = gtk.gdk.keyval_from_name("Return") _KP_ENTER = gtk.gdk.keyval_from_name("KP_Enter") +_SPACE = gtk.gdk.keyval_from_name("space") _LEFT_BUTTON = 1 _RIGHT_BUTTON = 3 @@ -1705,7 +1706,7 @@ def button_activated(event, mouse_button): if (event.type == gtk.gdk.BUTTON_PRESS and \ event.button == mouse_button) or \ (event.type == gtk.gdk.KEY_PRESS and \ - event.keyval in (_RETURN, _KP_ENTER)): + event.keyval in (_RETURN, _KP_ENTER, _SPACE)): return True else: return False