diff options
Diffstat (limited to 'ui/curses.c')
-rw-r--r-- | ui/curses.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/curses.c b/ui/curses.c index b47558956c..f1f886c968 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -317,7 +317,10 @@ static void curses_refresh(DisplayChangeListener *dcl) qemu_input_event_send_key_delay(0); } } else { - keysym = curses2qemu[chr]; + keysym = -1; + if (chr < CURSES_KEYS) { + keysym = curses2qemu[chr]; + } if (keysym == -1) keysym = chr; |