aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2007-07-07 11:17:33 +0000
committerEli Zaretskii2007-07-07 11:17:33 +0000
commit9f369268151e58855e44ae9fd4a39009cc3bfdfd (patch)
tree4b98421a32cf6f8f8268908ee503648df12add71
parentb2b387f94fb787869de8d4b5276ac0a02c94d520 (diff)
downloademacs-9f369268151e58855e44ae9fd4a39009cc3bfdfd.tar.gz
emacs-9f369268151e58855e44ae9fd4a39009cc3bfdfd.zip
(menu-bar-open): New function. Bind <f10> to it.
-rw-r--r--lisp/term/w32-win.el14
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")
1041 1041
1042;;; make f10 activate the real menubar rather than the mini-buffer menu 1042;;; make f10 activate the real menubar rather than the mini-buffer menu
1043;;; navigation feature. 1043;;; navigation feature.
1044(global-set-key [f10] (lambda () 1044(defun menu-bar-open (&optional frame)
1045 (interactive) (w32-send-sys-command ?\xf100))) 1045 "Start key navigation of the menu bar in FRAME.
1046
1047This initially activates the first menu-bar item, and you can then navigate
1048with the arrow keys, select a menu entry with the Return key or cancel with
1049the Escape key. If FRAME has no menu bar, this function does nothing.
1050
1051If FRAME is nil or not given, use the selected frame."
1052 (interactive "i")
1053 (w32-send-sys-command ?\xf100 frame))
1054;
1055(global-set-key [f10] 'menu-bar-open)
1046 1056
1047(substitute-key-definition 'suspend-emacs 'iconify-or-deiconify-frame 1057(substitute-key-definition 'suspend-emacs 'iconify-or-deiconify-frame
1048 global-map) 1058 global-map)