[kupfer] Enable Ctrl+, for comma trick by default
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] Enable Ctrl+, for comma trick by default
- Date: Wed, 31 Mar 2010 02:25:05 +0000 (UTC)
commit 4ce2080450ea3c27ec0f5f7bf79156bed63306da
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Mar 31 02:41:54 2010 +0200
Enable Ctrl+, for comma trick by default
Apart from the usual comma, Ctrl+, is enabled to make the comma trick
available from text mode by default.
We also make the text-mode comma trick erase the entry field after
putting the text on the comma trick's stack.
data/defaults.cfg | 2 +-
kupfer/ui/browser.py | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/data/defaults.cfg b/data/defaults.cfg
index 5835f08..7406c4d 100644
--- a/data/defaults.cfg
+++ b/data/defaults.cfg
@@ -15,7 +15,7 @@ UseCommandKeys = True
[Keybindings]
activate = <Alt>a
-comma_trick =
+comma_trick = <Control>comma
compose_action = <Control>Return
reset_all = <Control>r
select_quit = <Control>q
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index eb91a42..79911cf 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -1224,6 +1224,8 @@ class Interface (gobject.GObject):
curpane = self._pane_for_widget(self.current)
if self.data_controller.object_stack_push(curpane, cur):
self._relax_search_terms()
+ if self.get_in_text_mode():
+ self.reset_text()
return True
def _pane_reset(self, controller, pane, item):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]