[Xfce4-commits] <midori:master> Interpret Backspace as going back
Christian Dywan
noreply at xfce.org
Sun May 15 01:50:02 CEST 2011
Updating branch refs/heads/master
to f2fa49f342a0d7ec3635863e9d65f80fb1229a42 (commit)
from 476c20aae48377504b796aea44bbeca579c56d71 (commit)
commit f2fa49f342a0d7ec3635863e9d65f80fb1229a42
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun May 15 01:43:26 2011 +0200
Interpret Backspace as going back
A user continually hitting the Backspace key and then mousing
for the Back button, someone who rarely uses shortcuts at all.
midori/midori-browser.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 3b01e88..1fcbdde 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -1708,6 +1708,13 @@ midori_browser_key_press_event (GtkWidget* widget,
if (event->state && gtk_window_propagate_key_event (window, event))
return TRUE;
+ /* Interpret Backspace as going back for compatibility */
+ if (event->keyval == GDK_BackSpace)
+ {
+ gtk_action_activate (_action_by_name (browser, "Back"));
+ return TRUE;
+ }
+
widget_class = g_type_class_peek_static (g_type_parent (GTK_TYPE_WINDOW));
return widget_class->key_press_event (widget, event);
}
More information about the Xfce4-commits
mailing list