mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-31 02:41:52 +00:00
client X11: support volume keys when evdev is in use
Add support for sending volume keys scancodes to the guest
RHBZ #552539
Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
(cherry picked from commit d2cd7b2b02)
This commit is contained in:
parent
4b468cd45c
commit
d82ac68c5a
@ -186,6 +186,9 @@ enum EvdevKeyCode {
|
||||
EVDEV_KEYCODE_PAGE_DOWN,
|
||||
EVDEV_KEYCODE_INSERT,
|
||||
EVDEV_KEYCODE_DELETE,
|
||||
EVDEV_KEYCODE_MUTE = 121,
|
||||
EVDEV_KEYCODE_VOLUME_DOWN = 122,
|
||||
EVDEV_KEYCODE_VOLUME_UP = 123,
|
||||
EVDEV_KEYCODE_PAUSE = 127,
|
||||
EVDEV_KEYCODE_HANGUL = 130,
|
||||
EVDEV_KEYCODE_HANGUL_HANJA,
|
||||
@ -456,6 +459,9 @@ static void init_evdev_map()
|
||||
{
|
||||
#define KEYMAP(key_code, red_key) keycode_map[EVDEV_##key_code] = red_key
|
||||
INIT_MAP;
|
||||
KEYMAP(KEYCODE_MUTE, REDKEY_MUTE);
|
||||
KEYMAP(KEYCODE_VOLUME_DOWN, REDKEY_VOLUME_DOWN);
|
||||
KEYMAP(KEYCODE_VOLUME_UP, REDKEY_VOLUME_UP);
|
||||
#undef KEYMAP
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user