[Xfce4-commits] <midori:master> Interpret F5 as reloading for compatibility

Christian Dywan noreply at xfce.org
Mon May 16 01:18:01 CEST 2011


Updating branch refs/heads/master
         to e469e4315b70b23452fad24d6dca1126ff376aa5 (commit)
       from e66ea168c21a0be6506329ca87d2f9b028e7d8c8 (commit)

commit e469e4315b70b23452fad24d6dca1126ff376aa5
Author: Marin Moulinier <marinmoulinier at free.fr>
Date:   Mon May 16 01:05:27 2011 +0200

    Interpret F5 as reloading for compatibility
    
    Fixes: https://bugs.launchpad.net/midori/+bug/772068

 midori/midori-browser.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index e407939..74b0870 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -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)));



More information about the Xfce4-commits mailing list