[kupfer] ui: Fix regression in latest commit (Did not reset to top on new search)



commit 831ec7c232d8b4017f30e9e8776d560d63535835
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Jan 18 18:50:29 2012 +0100

    ui: Fix regression in latest commit (Did not reset to top on new search)

 kupfer/ui/browser.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index 405e7e7..76b6290 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -1166,9 +1166,7 @@ class Interface (gobject.GObject):
 				self._update_active()
 		"""
 
-		# 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 and shift_mask:
 				uchar = gtk.gdk.keyval_to_unicode(keyv)
@@ -1178,6 +1176,9 @@ class Interface (gobject.GObject):
 					self.switch_current()
 			return False
 		"""
+		# exit here if it's not a special key
+		if keyv not in self.keys_sensible:
+			return False
 		self._reset_to_toplevel = False
 
 		if keyv == key_book["Escape"]:



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