OSDN Git Service

sdl2: drop qemu_input_event_send_key_qcode call
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Feb 2019 07:27:44 +0000 (08:27 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 21 Feb 2019 09:43:10 +0000 (10:43 +0100)
qkbd_state_key_event() does that for us.

Fixes: 07333e1ca3 kbd-state: use state tracker for sdl2
Reported-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-id: 20190208072744.10687-1-kraxel@redhat.com

ui/sdl2-input.c

index 664364a..fb345f4 100644 (file)
@@ -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);
     }
 }