mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Enable TTY menus with xterm-mouse-mode
* lisp/tmm.el: No need to bind 'tmm-menubar-mouse' to mouse clicks on the menu bar. * lisp/menu-bar.el (global-map): Bind 'menu-bar-open-mouse' to mouse click on menu bar. This is needed in xt-mouse. * etc/NEWS: Announce TTY menu support in xterm-mouse-mode.
This commit is contained in:
parent
0695c9e859
commit
92d37029a7
3 changed files with 12 additions and 1 deletions
|
|
@ -2088,6 +2088,8 @@ key, a click, or a menu-item"))
|
|||
(bindings--define-key global-map [menu-bar help-menu]
|
||||
(cons (purecopy "Help") menu-bar-help-menu))
|
||||
|
||||
(define-key global-map [menu-bar mouse-1] 'menu-bar-open-mouse)
|
||||
|
||||
(defun menu-bar-menu-frame-live-and-visible-p ()
|
||||
"Return non-nil if the menu frame is alive and visible.
|
||||
The menu frame is the frame for which we are updating the menu."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue