mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-06 11:55:48 +00:00
(menu-bar-open): New function. Bind <f10> to it.
This commit is contained in:
parent
e4b9bdc58f
commit
ad1c463f79
@ -1,3 +1,8 @@
|
||||
2007-07-07 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* term/w32-win.el (menu-bar-open): New function.
|
||||
Bind <f10> to it.
|
||||
|
||||
2007-07-07 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* log-view.el (log-view-mode-menu): New menu.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user