diff options
author | Jason Rumney <jasonr@gnu.org> | 2005-07-25 22:17:02 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2005-07-25 22:17:02 +0000 |
commit | 94c7f25790c1cca8337250b31a75b9869d967b1e (patch) | |
tree | 5e5ed35d34cb2270f5a82e62c2a769976af5ebba /src/w32menu.c | |
parent | d8a885817df91b48433c480f630ee4d750fcfc45 (diff) | |
download | emacs-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.c | 7 |
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 { |