mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
2396187076
commit
7f5e07d9b3
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue