[atomix/wip/gtk3-port] Added space and escape to navigation keys
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atomix/wip/gtk3-port] Added space and escape to navigation keys
- Date: Mon, 12 Jan 2015 23:36:27 +0000 (UTC)
commit 9a2c0aecd6725ca8bc7b32b8157f2539df1b5a3b
Author: Robert Roth <robert roth off gmail com>
Date: Tue Jan 13 01:36:02 2015 +0200
Added space and escape to navigation keys
src/board-gtk.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/board-gtk.c b/src/board-gtk.c
index c5b4d71..f6d4893 100644
--- a/src/board-gtk.c
+++ b/src/board-gtk.c
@@ -724,6 +724,7 @@ gboolean board_gtk_handle_key_event (GObject * canvas, GdkEventKey * event,
return FALSE;
switch (event->keyval) {
+ case GDK_KEY_space:
case GDK_KEY_Return:
selector_data->mouse_steering = FALSE;
if (selector_data->selected)
@@ -742,7 +743,11 @@ gboolean board_gtk_handle_key_event (GObject * canvas, GdkEventKey * event,
selector_select (selector_data, item);
}
break;
-
+ case GDK_KEY_Escape:
+ if (selector_data->selected)
+ /* unselect item, show selector image */
+ selector_unselect (selector_data);
+ break;
case GDK_KEY_Left:
selector_data->mouse_steering = FALSE;
if (!selector_data->selected) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]