]> spindle.queued.net Git - midori/commitdiff
Interpret F5 as reloading for compatibility
authorMarin Moulinier <marinmoulinier@free.fr>
Sun, 15 May 2011 23:05:27 +0000 (01:05 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 15 May 2011 23:05:27 +0000 (01:05 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/772068
midori/midori-browser.c

index e4079392b022d41ca7a8922063dcde7c2018f899..74b08703756eb2b602789764fc03c73308a03035 100644 (file)
@@ -1678,6 +1678,12 @@ midori_browser_key_press_event (GtkWidget*   widget,
         gtk_action_activate (_action_by_name (browser, "TabPrevious"));
         return TRUE;
     }
+    /* Interpret F5 as reloading for compatibility */
+    else if (event->keyval == GDK_F5)
+    {
+        gtk_action_activate (_action_by_name (browser, "Reload"));
+        return TRUE;
+    }
 
     if (gtk_window_get_focus (GTK_WINDOW (widget)) == NULL)
         gtk_widget_grab_focus (midori_browser_get_current_tab (MIDORI_BROWSER (widget)));