qemu/hw/input
Daniel P. Berrange 8f63458ff7 ps2: fix scancodes sent for Shift/Ctrl+Print key combination
The 'Print' key is special in the AT set 1 / set 2 scancode definitions.

An unmodified 'Print' key is supposed to send

 AT Set 1:  e0 2a e0 37 (Down)  e0 b7 e0 aa (Up)
 AT Set 2:  e0 12 e0 7c (Down)  e0 f0 7c e0 f0 12 (Up)

which QEMU gets right. When combined with Shift/Ctrl (both left and right
variants), the leading two bytes should be dropped, resulting in

 AT Set 1:  e0 37 (Down)  e0 b7 (Up)
 AT Set 2:  e0 7c (Down)  e0 f0 7c (Up)

This difference is pretty benign, since of all the operating systems I have
checked (Linux, FreeBSD and OpenStack), none bother to check the leading two
bytes anyway. This change none the less makes the ps2 device better follow real
hardware behaviour.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20171019142848.572-6-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2017-10-23 10:50:02 +02:00
..
adb.c ui: drop altgr and altgr_r QKeyCodes 2017-07-27 14:23:33 +02:00
hid.c hid: Reset kbd modifiers on reset 2017-06-23 11:50:05 +02:00
lm832x.c i2c: Allow I2C devices to NAK start events 2017-01-09 11:40:20 +00:00
Makefile.objs virtio-input: Fix device introspection on non-Linux hosts 2015-10-09 15:25:56 +02:00
milkymist-softusb.c memory: Rename memory_region_init_ram() to memory_region_init_ram_nomigrate() 2017-07-14 17:59:42 +01:00
pckbd.c shutdown: Add source information to SHUTDOWN and RESET 2017-05-23 13:28:17 +02:00
pl050.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
ps2.c ps2: fix scancodes sent for Shift/Ctrl+Print key combination 2017-10-23 10:50:02 +02:00
pxa2xx_keypad.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
stellaris_input.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
trace-events ps2: fix scancodes sent for Alt-Print key combination (aka SysRq) 2017-10-23 10:50:02 +02:00
tsc210x.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
tsc2005.c vmstateify tsc2005 2016-10-04 13:28:08 +01:00
virtio-input-hid.c virtio-input: send rel-wheel events for wheel buttons 2017-09-29 10:36:33 +02:00
virtio-input-host.c virtio-input: support absolute axis config in pass-through 2016-04-13 17:26:12 +02:00
virtio-input.c virtio-input: fix eventq batching 2017-03-27 12:14:45 +02:00
vmmouse.c vmstate: error hint for failed equal checks 2017-06-28 11:18:44 +02:00