summaryrefslogtreecommitdiff
path: root/lib/ephy-gui.c
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2019-07-30 23:00:25 +0200
committerJan-Michael Brummer <jan.brummer@tabos.org>2019-07-30 23:00:25 +0200
commit4b16224c66c9b6b79bb0a26412bf184a14ce4387 (patch)
treea10a7476474d71277eeb2c991bfb763d9d0b10c3 /lib/ephy-gui.c
parenta262c9e65410aba80e4edb82daf61087e107e644 (diff)
downloadepiphany-4b16224c66c9b6b79bb0a26412bf184a14ce4387.tar.gz
Fix alt+navigation keys shortcuts
Diffstat (limited to 'lib/ephy-gui.c')
-rw-r--r--lib/ephy-gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index 989012fc5..c342b23a0 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -85,7 +85,8 @@ ephy_gui_help (GtkWidget *parent,
void
ephy_gui_get_current_event (GdkEventType *otype,
guint *ostate,
- guint *obutton)
+ guint *obutton,
+ guint *keyval)
{
GdkEvent *event;
GdkEventType type = GDK_NOTHING;
@@ -98,6 +99,8 @@ ephy_gui_get_current_event (GdkEventType *otype,
if (type == GDK_KEY_PRESS ||
type == GDK_KEY_RELEASE) {
state = event->key.state;
+ if (keyval)
+ *keyval = event->key.keyval;
} else if (type == GDK_BUTTON_PRESS ||
type == GDK_BUTTON_RELEASE ||
type == GDK_2BUTTON_PRESS ||