Interpret Shift+Backspace as going forward
Analogous to Backspace for back.
This commit is contained in:
parent
92e23d9d4e
commit
9bc26e97fe
1 changed files with 8 additions and 2 deletions
|
@ -1657,8 +1657,14 @@ midori_browser_key_press_event (GtkWidget* widget,
|
||||||
if (event->state && gtk_window_propagate_key_event (window, event))
|
if (event->state && gtk_window_propagate_key_event (window, event))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* Interpret Backspace as going back for compatibility */
|
/* Interpret (Shift+)Backspace as going back (forward) for compatibility */
|
||||||
if (event->keyval == GDK_BackSpace)
|
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"));
|
gtk_action_activate (_action_by_name (browser, "Back"));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue