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.
This commit is contained in:
parent
476c20aae4
commit
f2fa49f342
1 changed files with 7 additions and 0 deletions
|
@ -1708,6 +1708,13 @@ 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 */
|
||||||
|
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));
|
widget_class = g_type_class_peek_static (g_type_parent (GTK_TYPE_WINDOW));
|
||||||
return widget_class->key_press_event (widget, event);
|
return widget_class->key_press_event (widget, event);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue