diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-03-11 14:08:31 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-03-12 10:43:16 +0100 |
commit | 7f5e07d9b36467a7ce84ecf57623df561910c181 (patch) | |
tree | 757c5dd0d54d18ebc848c7989fc33294960ad2b6 /ui | |
parent | 239618707637ec87eba8c452d2b2f75dc5ca20c7 (diff) | |
download | qemu-7f5e07d9b36467a7ce84ecf57623df561910c181.zip qemu-7f5e07d9b36467a7ce84ecf57623df561910c181.tar.gz qemu-7f5e07d9b36467a7ce84ecf57623df561910c181.tar.bz2 |
input: activate legacy kbd
Restores traditional behavior: Keyboard input will be routed to the most
recently added keyboard. Without this all kbd input goes to the ps/2
keyboard, even if you add a usb keyboard to your guest.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/input-legacy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 7dc486b..1aa2605 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -333,6 +333,7 @@ QEMUPutKbdEntry *qemu_add_kbd_event_handler(QEMUPutKBDEvent *func, void *opaque) entry->opaque = opaque; entry->s = qemu_input_handler_register((DeviceState *)entry, &legacy_kbd_handler); + qemu_input_handler_activate(entry->s); return entry; } |