[kupfer] browser: Add Alt+A accelerator as left-hand alternative for activate
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] browser: Add Alt+A accelerator as left-hand alternative for activate
- Date: Thu, 17 Sep 2009 19:23:04 +0000 (UTC)
commit 77b4dadcd76d5661ad01bd22eb362c1ebaebf7a7
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Sep 17 00:13:29 2009 +0200
browser: Add Alt+A accelerator as left-hand alternative for activate
kupfer/browser.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index 942db39..3d3b72d 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -802,6 +802,7 @@ class Interface (gobject.GObject):
"<Control>r" : "reset_all",
"<Control>g" : "select_selected_file",
"<Control>t" : "select_selected_text",
+ "<Alt>a" : "activate",
}
direct_text_key = gtk.gdk.keyval_from_name("period")
init_text_keys = map(gtk.gdk.keyval_from_name, ("slash", "equal"))
@@ -1154,6 +1155,10 @@ class Interface (gobject.GObject):
# reset self through toggle_text_mode
self.toggle_text_mode(False)
self.data_controller.activate()
+
+ def activate(self):
+ """Activate current selection (Run action)"""
+ self._activate(None, None)
def _search_result(self, sender, pane, matchrankable, matches, context):
key = context
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]