diff options
Diffstat (limited to 'src/gui/curses/gui-curses-key.c')
-rw-r--r-- | src/gui/curses/gui-curses-key.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c index b74c19f4f..bf39c11e2 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -463,7 +463,7 @@ gui_key_flush (int paste) length_key_str = strlen (key_str); /* set last key used in buffer if combo buffer is empty */ - if (!gui_key_combo_buffer[0]) + if (gui_mouse_event_pending || !gui_key_combo_buffer[0]) last_key_used = i; } @@ -472,7 +472,8 @@ gui_key_flush (int paste) else if (last_key_used >= 0) gui_key_buffer_remove (0, last_key_used + 1); - gui_key_combo_buffer[0] = '\0'; + if (!gui_mouse_event_pending) + gui_key_combo_buffer[0] = '\0'; } /* |