summaryrefslogtreecommitdiff
path: root/src/w32menu.c
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2005-07-25 22:17:02 +0000
committerJason Rumney <jasonr@gnu.org>2005-07-25 22:17:02 +0000
commit94c7f25790c1cca8337250b31a75b9869d967b1e (patch)
tree5e5ed35d34cb2270f5a82e62c2a769976af5ebba /src/w32menu.c
parentd8a885817df91b48433c480f630ee4d750fcfc45 (diff)
downloademacs-94c7f25790c1cca8337250b31a75b9869d967b1e.tar.gz
(w32_menu_display_help): Suppress tooltip when navigating menus with
the keyboard.
Diffstat (limited to 'src/w32menu.c')
-rw-r--r--src/w32menu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/w32menu.c b/src/w32menu.c
index 065355f8755..0e4902b6ce4 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -2418,8 +2418,11 @@ w32_menu_display_help (HWND owner, HMENU menu, UINT item, UINT flags)
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
{