diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-08-08 04:38:35 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-08-08 04:38:35 +0800 |
commit | 148a755f7a9ed405ac89f92d8add5804efd664c3 (patch) | |
tree | 320c2433825aa88a07f3fe60bc728c3aa874593d /src/ephy-window.c | |
parent | abe6943d42403279998b63725b8bbc9fb7cd1a96 (diff) | |
download | gsoc2013-epiphany-148a755f7a9ed405ac89f92d8add5804efd664c3.tar gsoc2013-epiphany-148a755f7a9ed405ac89f92d8add5804efd664c3.tar.gz gsoc2013-epiphany-148a755f7a9ed405ac89f92d8add5804efd664c3.tar.bz2 gsoc2013-epiphany-148a755f7a9ed405ac89f92d8add5804efd664c3.tar.lz gsoc2013-epiphany-148a755f7a9ed405ac89f92d8add5804efd664c3.tar.xz gsoc2013-epiphany-148a755f7a9ed405ac89f92d8add5804efd664c3.tar.zst gsoc2013-epiphany-148a755f7a9ed405ac89f92d8add5804efd664c3.zip |
Also recognise keypad keys for navigation. Bug #337089.
2006-08-07 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-window.c:
Also recognise keypad keys for navigation. Bug #337089.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 014b94785..8f4678d99 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -369,6 +369,25 @@ static const struct { GDK_KP_Add, GDK_CONTROL_MASK, "ViewZoomIn", FALSE }, { GDK_KP_Subtract, GDK_CONTROL_MASK, "ViewZoomOut", FALSE }, { GDK_equal, GDK_CONTROL_MASK, "ViewZoomIn", FALSE }, + /* These keys are a bit strange: when pressed with no modifiers, they emit + * KP_PageUp/Down Control; when pressed with Control+Shift they are KP_9/3, + * when NumLock is on they are KP_9/3 and with NumLock and Control+Shift + * They're KP_PageUp/Down again! + */ + { GDK_KP_Left, GDK_MOD1_MASK /*Alt*/, "NavigationBack", TRUE }, + { GDK_KP_4, GDK_MOD1_MASK /*Alt*/, "NavigationBack", TRUE }, + { GDK_KP_Right, GDK_MOD1_MASK /*Alt*/, "NavigationForward", TRUE }, + { GDK_KP_6, GDK_MOD1_MASK /*Alt*/, "NavigationForward", TRUE }, + { GDK_KP_Up, GDK_MOD1_MASK /*Alt*/, "NavigationUp", TRUE }, + { GDK_KP_8, GDK_MOD1_MASK /*Alt*/, "NavigationUp", TRUE }, + { GDK_KP_Page_Up, GDK_CONTROL_MASK, "TabsPrevious", FALSE }, + { GDK_KP_9, GDK_CONTROL_MASK, "TabsPrevious", FALSE }, + { GDK_KP_Page_Down, GDK_CONTROL_MASK, "TabsNext", FALSE }, + { GDK_KP_3, GDK_CONTROL_MASK, "TabsNext", FALSE }, + { GDK_KP_Page_Up, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "TabsMoveLeft", FALSE }, + { GDK_KP_9, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "TabsMoveLeft", FALSE }, + { GDK_KP_Page_Down, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "TabsMoveRight", FALSE }, + { GDK_KP_3, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "TabsMoveRight", FALSE }, #ifdef HAVE_X11_XF86KEYSYM_H { XF86XK_Back, 0, "NavigationBack", TRUE }, { XF86XK_Favorites, 0, "GoBookmarks", FALSE }, |