emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xmenu.c


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/xmenu.c
Date: Mon, 27 Dec 2004 16:09:52 -0500

Index: emacs/src/xmenu.c
diff -c emacs/src/xmenu.c:1.275 emacs/src/xmenu.c:1.276
*** emacs/src/xmenu.c:1.275     Mon Dec 27 15:58:25 2004
--- emacs/src/xmenu.c   Mon Dec 27 20:34:03 2004
***************
*** 1232,1256 ****
            event.xbutton.state = 0;
  #endif
          }
!       /* If the user presses a key that doesn't go to the menu,
!          deactivate the menu.
!          The user is likely to do that if we get wedged.
!          All toolkits now pop down menus on ESC.
!          For dialogs however, the focus may not be on the dialog, so
!          in that case, we pop down. */
        else if (event.type == KeyPress
                 && down_on_keypress
                 && dpyinfo->display == event.xbutton.display)
          {
            KeySym keysym = XLookupKeysym (&event.xkey, 0);
  
!           /* Pop down on C-g.  */
!           if (keysym == XK_g && (event.xkey.state & ControlMask) != 0)
              popup_activated_flag = 0;
- 
-           if (!IsModifierKey (keysym)
-               && x_any_window_to_frame (dpyinfo, event.xany.window) != NULL)
-           popup_activated_flag = 0;
          }
  
        x_dispatch_event (&event, event.xany.display);
--- 1232,1247 ----
            event.xbutton.state = 0;
  #endif
          }
!       /* Pop down on C-g and Escape.  */
        else if (event.type == KeyPress
                 && down_on_keypress
                 && dpyinfo->display == event.xbutton.display)
          {
            KeySym keysym = XLookupKeysym (&event.xkey, 0);
  
!           if ((keysym == XK_g && (event.xkey.state & ControlMask) != 0)
!               || keysym == XK_Escape) /* Any escape, ignore modifiers.  */
              popup_activated_flag = 0;
          }
  
        x_dispatch_event (&event, event.xany.display);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]