[kupfer: 15/31] browser: Only show main interface on Default keybinding



commit 96c58b59c4e8ef898c41079d0c849c044b6880ae
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Dec 30 06:31:13 2009 +0100

    browser: Only show main interface on Default keybinding

 kupfer/browser.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index ea94f97..7a95ab6 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -1405,11 +1405,11 @@ class WindowController (pretty.OutputMixin):
 
 	def _key_binding(self, keyobj, keybinding_number, event_time):
 		"""Keybinding activation callback"""
-		if keybinding_number == keybindings.KEYBINDING_MAGIC:
+		if keybinding_number == keybindings.KEYBINDING_DEFAULT:
+			self.show_hide(time=event_time)
+		elif keybinding_number == keybindings.KEYBINDING_MAGIC:
 			self.activate(time=event_time)
 			self.interface.select_selected_file()
-		else:
-			self.show_hide(time=event_time)
 
 	def _put_text_recieved(self, sender, working_dir, text):
 		"""We got a search query from dbus"""



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