]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_menu_display_help): Suppress tooltip when navigating menus with
authorJason Rumney <jasonr@gnu.org>
Mon, 25 Jul 2005 22:17:02 +0000 (22:17 +0000)
committerJason Rumney <jasonr@gnu.org>
Mon, 25 Jul 2005 22:17:02 +0000 (22:17 +0000)
the keyboard.

src/ChangeLog
src/w32menu.c

index c5053161c83b29c62eaac36fd692a68ad9eb03fc..ec3ecb5666053336d2a33dbbdb55eabbc930be0a 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-25  Jason Rumney  <jasonr@gnu.org>
+
+       * w32menu.c (w32_menu_display_help): Suppress tooltip when
+       navigating menus with the keyboard.
+
 2005-07-23  Richard M. Stallman  <rms@gnu.org>
 
        * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
index 065355f87550a55a30ef9faaa77cbc3b984fc0e7..0e4902b6ce4d7f12950ce0a1c4470eaf68d3afec 100644 (file)
@@ -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
        {