[kupfer] Add F1 accelerator to show help/documentation



commit a180c1bd360063f374629d149e6c39dd75e052ae
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Mar 16 01:17:40 2010 +0100

    Add F1 accelerator to show help/documentation
    
    Showing help files on F1 is a Gnome standard. Requested by Mario
    Blättermann.

 kupfer/ui/browser.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index d48df9e..72ac840 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -898,6 +898,7 @@ class Interface (gobject.GObject):
 			"<Control>q" : "select_quit",
 			"<Alt>a" : "activate",
 			"<Control>Return": "compose_action",
+			"F1" : "show_help",
 		}
 		direct_text_key = gtk.gdk.keyval_from_name("period")
 		init_text_keys = map(gtk.gdk.keyval_from_name, ("slash", "equal"))
@@ -1220,6 +1221,10 @@ class Interface (gobject.GObject):
 	def select_quit(self):
 		self.data_controller.find_object("qpfer:quit")
 
+	def show_help(self):
+		from kupfer import kupferui
+		kupferui.show_help()
+
 	def compose_action(self):
 		self.data_controller.compose_selection()
 



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