[kupfer] ui: Only search in action pane with shift key



commit fc01b3c6a2480ba71361f997ab1758d9440b7fc1
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue May 3 16:13:06 2011 +0200

    ui: Only search in action pane with shift key
    
    React (to switch to action pane and search there) only on uppercase
    letters with the shift key pressed. This way we don't react on caps
    lock.

 kupfer/ui/browser.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index 8e5a9da..edc09c8 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -1165,7 +1165,7 @@ class Interface (gobject.GObject):
 		# exit here if it's not a special key
 		if keyv not in self.keys_sensible:
 			## if typing with shift key, switch to action pane
-			if not text_mode and use_command_keys:
+			if not text_mode and use_command_keys and shift_mask:
 				uchar = gtk.gdk.keyval_to_unicode(keyv)
 				if (uchar and unichr(uchar).isupper() and
 				    self.current == self.search):



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