]> git.proxmox.com Git - mirror_qemu.git/commit
ps2: Don't send key release event for Lang1, Lang2 keys
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 27 Feb 2023 17:33:08 +0000 (17:33 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 14 Mar 2023 13:41:21 +0000 (13:41 +0000)
commit92f4a21d912cd4618a2951c645b3d27d3c8a6b21
tree9178210f57b3c3d6d875216f0f780dc411bbd156
parentac19b51678bd8e45ca2e44c062e4191bf8c48505
ps2: Don't send key release event for Lang1, Lang2 keys

The scancodes for the Lang1 and Lang2 keys (i.e. Hangeul, Hanja) are
special since they already have the 0x80 bit set which is commonly used
to indicate a key release in AT set 1. Reportedly, real hardware does
not send a key release scancode. So, skip sending a release for these
keys. This ensures that Windows behaves correctly and interprets it as a
single keypress rather than two consecutive keypresses.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
hw/input/ps2.c