qkbd_state_key_event() does that for us. Fixes: 07333e1ca3 kbd-state: use state tracker for sdl2 Reported-by: BALATON Zoltan <bala...@eik.bme.hu> Signed-off-by: Gerd Hoffmann <kra...@redhat.com> Tested-by: BALATON Zoltan <bala...@eik.bme.hu> Message-id: 20190208072744.10687-1-kra...@redhat.com --- ui/sdl2-input.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/ui/sdl2-input.c b/ui/sdl2-input.c index 664364a5e5be..fb345f45fb28 100644 --- a/ui/sdl2-input.c +++ b/ui/sdl2-input.c @@ -54,8 +54,5 @@ void sdl2_process_key(struct sdl2_console *scon, break; } } - } else { - qemu_input_event_send_key_qcode(con, qcode, - ev->type == SDL_KEYDOWN); } } -- 2.9.3