diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 581a5ce6cd2..d86535c47ac 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -2889,6 +2889,9 @@ xmenu_show (f, x, y, for_click, keymaps, title, error) | |||
| 2889 | } | 2889 | } |
| 2890 | } | 2890 | } |
| 2891 | } | 2891 | } |
| 2892 | else if (!for_click) | ||
| 2893 | /* Make "Cancel" equivalent to C-g. */ | ||
| 2894 | Fsignal (Qquit, Qnil); | ||
| 2892 | 2895 | ||
| 2893 | return Qnil; | 2896 | return Qnil; |
| 2894 | } | 2897 | } |
| @@ -3519,8 +3522,8 @@ xmenu_show (f, x, y, for_click, keymaps, title, error) | |||
| 3519 | entry = Qnil; | 3522 | entry = Qnil; |
| 3520 | break; | 3523 | break; |
| 3521 | case XM_NO_SELECT: | 3524 | case XM_NO_SELECT: |
| 3522 | /* Make "Cancel" equivalent to C-g unless this menu was popped up by | 3525 | /* Make "Cancel" equivalent to C-g unless FOR_CLICK (which means |
| 3523 | a mouse press. */ | 3526 | the menu was invoked with a mouse event as POSITION). */ |
| 3524 | if (! for_click) | 3527 | if (! for_click) |
| 3525 | Fsignal (Qquit, Qnil); | 3528 | Fsignal (Qquit, Qnil); |
| 3526 | entry = Qnil; | 3529 | entry = Qnil; |