[banshee] Nereid: Have ctrl-a select text in SearchEntry (bgo#634647)



commit d90509f11b9d21ee4b7ba2f313faa8587525f3d6
Author: Mackenan Grassi <mackenan gmail com>
Date:   Fri Apr 8 20:40:57 2011 -0700

    Nereid: Have ctrl-a select text in SearchEntry (bgo#634647)
    
    Prior to this, Ctrl-A would select all tracks, even if the SearchEntry
    box has focus. Now, if the SearchEntry box has focus when a Ctrl-A is
    hit, then the text inside the SearchEntry box is selected.
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 src/Clients/Nereid/Nereid/PlayerInterface.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index cb9ebb0..03055c1 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -677,9 +677,11 @@ namespace Nereid
                 }
             }
 
-            // Don't disable them if ctrl is pressed
-            disable_keybindings &= (evnt.State & Gdk.ModifierType.ControlMask) == 0 &&
-                evnt.Key != Gdk.Key.Control_L && evnt.Key != Gdk.Key.Control_R;
+            // Don't disable them if ctrl is pressed, unless ctrl-a is pressed
+            if (evnt.Key != Gdk.Key.a) {
+                disable_keybindings &= (evnt.State & Gdk.ModifierType.ControlMask) == 0 &&
+                    evnt.Key != Gdk.Key.Control_L && evnt.Key != Gdk.Key.Control_R;
+            }
 
             if (disable_keybindings) {
                 if (accel_group_active) {



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