[shotwell] Add <Ctrl>-f as shortcut for search bar



commit a9e4ef6df60822cf2feb8eb621f81d82504e4806
Author: Jens Georg <mail jensge org>
Date:   Thu Dec 22 13:23:30 2016 +0100

    Add <Ctrl>-f as shortcut for search bar
    
    As mentioned in the documentation
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/library/LibraryWindow.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala
index 8b8091a..236c3ab 100644
--- a/src/library/LibraryWindow.vala
+++ b/src/library/LibraryWindow.vala
@@ -209,7 +209,11 @@ public class LibraryWindow : AppWindow {
         CameraTable.get_instance().camera_added.connect(on_camera_added);
         
         background_progress_bar.set_show_text(true);
-        
+
+        // Need to re-install F8 here as it will overwrite the binding created
+        // by the menu
+        const string[] accels = { "<Primary>f", "F8", null };
+        Application.set_accels_for_action("win.CommonDisplaySearchbar", accels);
     }
 
     ~LibraryWindow() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]