aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2007-07-07 11:25:15 +0000
committerEli Zaretskii2007-07-07 11:25:15 +0000
commitad1c463f79c2dc7757e9948f82fbd40b0cf8a097 (patch)
tree9493a44ebd0563a1812bd8edcddf3a782ae59f11
parente4b9bdc58fc8db56f3d004dfd93e01d3c22e0994 (diff)
downloademacs-ad1c463f79c2dc7757e9948f82fbd40b0cf8a097.tar.gz
emacs-ad1c463f79c2dc7757e9948f82fbd40b0cf8a097.zip
(menu-bar-open): New function. Bind <f10> to it.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/term/w32-win.el14
2 files changed, 17 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 319aacd11e6..2e618aeb258 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-07-07 Eli Zaretskii <eliz@gnu.org>
2
3 * term/w32-win.el (menu-bar-open): New function.
4 Bind <f10> to it.
5
12007-07-07 Dan Nicolaescu <dann@ics.uci.edu> 62007-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * log-view.el (log-view-mode-menu): New menu. 8 * log-view.el (log-view-mode-menu): New menu.
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)