[banshee/stable-1.8] [Nereid] Always grab search entry focus on ctrl+f



commit 4cfbd6b2dcfb4e4dba219611cc1f560b2e5e1841
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Sun Nov 7 16:30:17 2010 -0600

    [Nereid] Always grab search entry focus on ctrl+f
    
    Even if the entry is already focused, GrabFocus will ensure the entered
    search query text is selected, making ctrl+f basically an alias for
    ctrl+a when the search entry is focused.

 src/Clients/Nereid/Nereid/PlayerInterface.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index 3175b3e..1a321c8 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -697,7 +697,8 @@ namespace Nereid
             // The source might have its own custom search entry - use it if so
             var src = ServiceManager.SourceManager.ActiveSource;
             var search_entry = src.Properties.Get<SearchEntry> ("Nereid.SearchEntry") ?? view_container.SearchEntry;
-            if (focus_search && search_entry.Visible && !search_entry.HasFocus && !source_view.EditingRow) {
+            if (focus_search && search_entry.Visible && !source_view.EditingRow) {
+                search_entry.InnerEntry.GrabFocus ();
                 search_entry.HasFocus = true;
                 return true;
             }



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