diff options
| author | Karoly Lorentey | 2005-01-06 15:00:09 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-01-06 15:00:09 +0000 |
| commit | 0feecea9fb7079a2c1fbfee32a992449a22cf478 (patch) | |
| tree | 0826d68e3dc2ce370c7bd4dae7db3cffc3568321 /oldXMenu | |
| parent | 17d51b68fb4e7da4f18eff72c589b7ffc4f9c22c (diff) | |
| parent | 1a63439b34c3455a317feda5c271dfdb7af0296b (diff) | |
| download | emacs-0feecea9fb7079a2c1fbfee32a992449a22cf478.tar.gz emacs-0feecea9fb7079a2c1fbfee32a992449a22cf478.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-747
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-748
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-749
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-750
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-751
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-752
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-78
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-79
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-80
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-278
Diffstat (limited to 'oldXMenu')
| -rw-r--r-- | oldXMenu/Activate.c | 14 | ||||
| -rw-r--r-- | oldXMenu/ChangeLog | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c index 363b225a355..2f81299cbb6 100644 --- a/oldXMenu/Activate.c +++ b/oldXMenu/Activate.c | |||
| @@ -81,6 +81,7 @@ | |||
| 81 | 81 | ||
| 82 | #include <config.h> | 82 | #include <config.h> |
| 83 | #include "XMenuInt.h" | 83 | #include "XMenuInt.h" |
| 84 | #include <X11/keysym.h> | ||
| 84 | 85 | ||
| 85 | /* For debug, set this to 0 to not grab the keyboard on menu popup */ | 86 | /* For debug, set this to 0 to not grab the keyboard on menu popup */ |
| 86 | int x_menu_grab_keyboard = 1; | 87 | int x_menu_grab_keyboard = 1; |
| @@ -131,6 +132,7 @@ XMenuActivate(display, menu, p_num, s_num, x_pos, y_pos, event_mask, data, | |||
| 131 | Window root, child; | 132 | Window root, child; |
| 132 | int root_x, root_y, win_x, win_y; | 133 | int root_x, root_y, win_x, win_y; |
| 133 | unsigned int mask; | 134 | unsigned int mask; |
| 135 | KeySym keysym; | ||
| 134 | 136 | ||
| 135 | /* | 137 | /* |
| 136 | * Define and allocate a foreign event queue to hold events | 138 | * Define and allocate a foreign event queue to hold events |
| @@ -458,6 +460,18 @@ XMenuActivate(display, menu, p_num, s_num, x_pos, y_pos, event_mask, data, | |||
| 458 | } | 460 | } |
| 459 | selection = True; | 461 | selection = True; |
| 460 | break; | 462 | break; |
| 463 | case KeyPress: | ||
| 464 | case KeyRelease: | ||
| 465 | keysym = XLookupKeysym (&event.xkey, 0); | ||
| 466 | |||
| 467 | /* Pop down on C-g and Escape. */ | ||
| 468 | if ((keysym == XK_g && (event.xkey.state & ControlMask) != 0) | ||
| 469 | || keysym == XK_Escape) /* Any escape, ignore modifiers. */ | ||
| 470 | { | ||
| 471 | ret_val = XM_NO_SELECT; | ||
| 472 | selection = True; | ||
| 473 | } | ||
| 474 | break; | ||
| 461 | default: | 475 | default: |
| 462 | /* | 476 | /* |
| 463 | * If AEQ mode is enabled then queue the event. | 477 | * If AEQ mode is enabled then queue the event. |
diff --git a/oldXMenu/ChangeLog b/oldXMenu/ChangeLog index ab86c364736..31a786cc23a 100644 --- a/oldXMenu/ChangeLog +++ b/oldXMenu/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-12-27 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * Activate.c (XMenuActivate): Return XM_NO_SELECT if Escape or C-g | ||
| 4 | was pressed. | ||
| 5 | |||
| 1 | 2004-11-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 6 | 2004-11-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * XMenu.h (XMenuActivateSetWaitFunction): New function. | 8 | * XMenu.h (XMenuActivateSetWaitFunction): New function. |