[kupfer] Change Select Selected File (Ctrl+G) to show only file



commit 245119baaaebefc8ee6ec71550410d76f5a6e5ee
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Mar 31 03:34:36 2010 +0200

    Change Select Selected File (Ctrl+G) to show only file
    
    Ctrl+G used to fallback to selected text. This works quite
    inconsistently, so we use only the selected file. The magic keybinding
    however still works the old way.

 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 019b892..f1f1f96 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -1206,7 +1206,6 @@ class Interface (gobject.GObject):
 
 	def select_selected_file(self):
 		# Add optional lookup data to narrow the search
-		self.data_controller.find_object("qpfer:selectedtext#any.TextLeaf")
 		self.data_controller.find_object("qpfer:selectedfile#any.FileLeaf")
 
 	def select_selected_text(self):
@@ -1526,6 +1525,7 @@ class WindowController (pretty.OutputMixin):
 			self.show_hide(time=event_time)
 		elif keybinding_number == keybindings.KEYBINDING_MAGIC:
 			self.activate(time=event_time)
+			self.interface.select_selected_text()
 			self.interface.select_selected_file()
 
 	def _put_text_received(self, sender, text):



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