diff options
author | Eli Zaretskii <eliz@gnu.org> | 2007-07-07 11:17:33 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2007-07-07 11:17:33 +0000 |
commit | 9f369268151e58855e44ae9fd4a39009cc3bfdfd (patch) | |
tree | 4b98421a32cf6f8f8268908ee503648df12add71 /lisp/term | |
parent | b2b387f94fb787869de8d4b5276ac0a02c94d520 (diff) | |
download | emacs-9f369268151e58855e44ae9fd4a39009cc3bfdfd.tar.gz |
(menu-bar-open): New function. Bind <f10> to it.
Diffstat (limited to 'lisp/term')
-rw-r--r-- | lisp/term/w32-win.el | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 56dbf944dfe..fca3f9ce4d2 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el @@ -1041,8 +1041,18 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp") ;;; make f10 activate the real menubar rather than the mini-buffer menu ;;; navigation feature. -(global-set-key [f10] (lambda () - (interactive) (w32-send-sys-command ?\xf100))) +(defun menu-bar-open (&optional frame) + "Start key navigation of the menu bar in FRAME. + +This initially activates the first menu-bar item, and you can then navigate +with the arrow keys, select a menu entry with the Return key or cancel with +the Escape key. If FRAME has no menu bar, this function does nothing. + +If FRAME is nil or not given, use the selected frame." + (interactive "i") + (w32-send-sys-command ?\xf100 frame)) +; +(global-set-key [f10] 'menu-bar-open) (substitute-key-definition 'suspend-emacs 'iconify-or-deiconify-frame global-map) |