From: Christian Dywan Date: Tue, 19 Jul 2011 20:14:07 +0000 (+0200) Subject: Interpret Shift+Backspace as going forward X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bc26e97fe2e596e93dfb2dbe1dc96d63890fdd7;p=midori Interpret Shift+Backspace as going forward Analogous to Backspace for back. --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 3f962100..fe95d9ec 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1657,8 +1657,14 @@ 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) + /* Interpret (Shift+)Backspace as going back (forward) for compatibility */ + if ((event->keyval == GDK_BackSpace) + && (event->state & GDK_SHIFT_MASK)) + { + gtk_action_activate (_action_by_name (browser, "Forward")); + return TRUE; + } + else if (event->keyval == GDK_BackSpace) { gtk_action_activate (_action_by_name (browser, "Back")); return TRUE;