navigate back and forward by <alt>+<left>/<right> keys

This commit is contained in:
Artem Anufrij 2017-08-11 20:05:11 +02:00
parent f59edc0733
commit e132237e0d

View file

@ -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;