From e132237e0df4acbe1b4487995ba4b3f2c1a180d2 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Fri, 11 Aug 2017 20:05:11 +0200 Subject: [PATCH] navigate back and forward by +/ keys --- src/WebWindow.vala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/WebWindow.vala b/src/WebWindow.vala index 54da055..1ddd2f7 100644 --- a/src/WebWindow.vala +++ b/src/WebWindow.vala @@ -149,6 +149,16 @@ namespace Webpin { case Gdk.Key.F11: toggle_fullscreen(); break; + case Gdk.Key.Left: + if (Gdk.ModifierType.MOD1_MASK in event.state) { + web_app.app_view.go_back (); + } + break; + case Gdk.Key.Right: + if (Gdk.ModifierType.MOD1_MASK in event.state) { + web_app.app_view.go_forward (); + } + break; default: handled = false; break;