Changeset 1471 for trunk/peppy/mainmenu.py
- Timestamp:
- 07/08/08 12:20:56 (5 months ago)
- Files:
-
- 1 modified
-
trunk/peppy/mainmenu.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/peppy/mainmenu.py
r1460 r1471 799 799 tooltip = "Describe an action by name" 800 800 default_menu = ("&Help", -200) 801 key_bindings = {'emacs': "C-h a", } 801 802 802 803 def __init__(self, *args, **kwargs): … … 825 826 826 827 828 class DescribeKey(SelectAction): 829 """Look up the action from the keystroke""" 830 name = "&Describe Key" 831 alias = "describe-key" 832 default_menu = ("&Help", 201) 833 key_bindings = {'emacs': "C-h k", } 834 835 def action(self, index=-1, multiplier=1): 836 self.frame.keys.setReportNext(self.displayAction) 837 838 def displayAction(self, action): 839 if action: 840 dprint("looking up docs for %s" % action) 841 Publisher().sendMessage('peppy.log.info', action.getHelp()) 842 self.frame.SetStatusText("Keystroke found.") 843 else: 844 self.frame.SetStatusText("Unbound keystroke.") 845 846 827 847 class CancelMinibuffer(SelectAction): 828 848 alias = "cancel-minibuffer" … … 841 861 tooltip = "Show help for the currently active minibuffer" 842 862 default_menu = ("&Help", 210) 843 key_bindings = {'emacs': " M-S-/m", }863 key_bindings = {'emacs': "C-h m", } 844 864 845 865 def isEnabled(self): … … 903 923 NewWindow, DeleteWindow, WindowList, 904 924 905 ExecuteActionByName, DescribeAction, HelpMinibuffer,925 ExecuteActionByName, DescribeAction, DescribeKey, HelpMinibuffer, 906 926 907 927 CancelMinibuffer,
