]> git.eshelyaron.com Git - emacs.git/commit
Don't require mouse for prompting via dialog boxes
authorEli Zaretskii <eliz@gnu.org>
Sat, 29 Jan 2022 15:54:43 +0000 (17:54 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Jan 2022 15:54:43 +0000 (17:54 +0200)
commitf7b408ec5001e777bf5facc81fcb815be0e1f5f6
treed22a85e293cba9a5f48807d8ae37ee4d9542eed2
parenta836e8bf0c818e081cdf81d1b5bdadfe6b0df85f
Don't require mouse for prompting via dialog boxes

* lisp/subr.el (use-dialog-box-p): Don't require mouse support,
and allow dialog boxes when invoked via the TTY menus without a
mouse.
(from--tty-menu-p): New internal variable.

* lisp/menu-bar.el (popup-menu): Bind 'from--tty-menu-p' when
invoking a command from the menu.
lisp/menu-bar.el
lisp/subr.el