[banshee] [Nereid] Always grab search entry focus on ctrl+f
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Nereid] Always grab search entry focus on ctrl+f
- Date: Sun, 7 Nov 2010 22:32:14 +0000 (UTC)
commit d175150177bdae68d87d91bba8124ea9d92a3093
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 40206a0..6978dde 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -708,7 +708,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]