diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 74614ce2f10..04291a24105 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1700,6 +1700,13 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1700 | c = XCONS (Vunread_command_events)->car; | 1700 | c = XCONS (Vunread_command_events)->car; |
| 1701 | Vunread_command_events = XCONS (Vunread_command_events)->cdr; | 1701 | Vunread_command_events = XCONS (Vunread_command_events)->cdr; |
| 1702 | 1702 | ||
| 1703 | /* Undo what read_char_x_menu_prompt did when it unread | ||
| 1704 | additional keys returned by Fx_popup_menu. */ | ||
| 1705 | if (CONSP (c) | ||
| 1706 | && (SYMBOLP (XCONS (c)->car) || INTEGERP (XCONS (c)->car)) | ||
| 1707 | && NILP (XCONS (c)->cdr)) | ||
| 1708 | c = XCONS (c)->car; | ||
| 1709 | |||
| 1703 | if (this_command_key_count == 0) | 1710 | if (this_command_key_count == 0) |
| 1704 | goto reread_first; | 1711 | goto reread_first; |
| 1705 | else | 1712 | else |