Mercurial > emacs
changeset 64632:13b6920b1146
(w32_menu_display_help): Suppress tooltip when navigating menus with
the keyboard.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Mon, 25 Jul 2005 22:16:11 +0000 |
parents | 4556f884d581 |
children | baf18f051cbc |
files | src/w32menu.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32menu.c Mon Jul 25 21:35:55 2005 +0000 +++ b/src/w32menu.c Mon Jul 25 22:16:11 2005 +0000 @@ -2418,8 +2418,11 @@ struct frame *f = x_window_to_frame (&one_w32_display_info, owner); Lisp_Object frame, help; - /* No help echo on owner-draw menu items. */ - if (flags & MF_OWNERDRAW || flags & MF_POPUP) + /* No help echo on owner-draw menu items, or when the keyboard is used + to navigate the menus, since tooltips are distracting if they pop + up elsewhere. */ + if (flags & MF_OWNERDRAW || flags & MF_POPUP + || !(flags & MF_MOUSESELECT)) help = Qnil; else {