summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-01-08 09:04:25 -0500
committerDana Jansens <danakj@orodu.net>2010-01-08 09:04:25 -0500
commitbafd9e9edcff0e18a03ef6f4e73d673e12a7c7ed (patch)
treee4ecbd36f3606c4decbb93de4f45a875491b0c36 /openbox/event.c
parent70c074afe84ddbe4058f67a1fce062a769b449fc (diff)
make Home and End keys navigate to top/bottom of the active menu
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 58e947fa..2ebea6ba 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -1729,6 +1729,16 @@ static gboolean event_handle_menu_keyboard(XEvent *ev)
menu_frame_select_next(frame);
ret = TRUE;
}
+
+ else if (ob_keycode_match(keycode, OB_KEY_HOME)) {
+ menu_frame_select_first(frame);
+ ret = TRUE;
+ }
+
+ else if (ob_keycode_match(keycode, OB_KEY_END)) {
+ menu_frame_select_last(frame);
+ ret = TRUE;
+ }
}
/* Use KeyRelease events for running things so that the key release doesn't