Message ID | 1473750414-16525-2-git-send-email-kraxel@redhat.com |
---|---|
State | Accepted |
Commit | bba4e1b591531c087fce4ae501dc1ca299d8fb42 |
Headers | show |
diff --git a/ui/curses.c b/ui/curses.c index b475589..f1f886c 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;