]> git.proxmox.com Git - mirror_qemu.git/commit
keymap: consider modifier state when picking a mapping
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Feb 2018 07:05:13 +0000 (08:05 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 22 Feb 2018 09:35:32 +0000 (10:35 +0100)
commitabb4f2c9655503f14dc55064f29c4f59b07e96ff
tree2de1661b57cc82aeb53d21aeac9e1c1a54dafd87
parent23ad24e48cf28ac2542ade657efbf7f802d7c8a0
keymap: consider modifier state when picking a mapping

Pass the modifier state to the keymap lookup function.  In case multiple
keysym -> keycode mappings exist look at the modifier state and prefer
the mapping where the modifier state matches.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20180222070513.8740-6-kraxel@redhat.com
ui/curses.c
ui/keymaps.c
ui/keymaps.h
ui/sdl.c
ui/vnc.c