Skip to content

Commit

Permalink
input: activate legacy kbd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kraxel committed Mar 12, 2014
1 parent 2396187 commit 7f5e07d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/input-legacy.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7f5e07d

Please sign in to comment.