diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-02-22 08:05:13 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-02-22 10:35:32 +0100 |
commit | abb4f2c9655503f14dc55064f29c4f59b07e96ff (patch) | |
tree | 2de1661b57cc82aeb53d21aeac9e1c1a54dafd87 /ui/curses.c | |
parent | 23ad24e48cf28ac2542ade657efbf7f802d7c8a0 (diff) | |
download | qemu-abb4f2c9655503f14dc55064f29c4f59b07e96ff.zip qemu-abb4f2c9655503f14dc55064f29c4f59b07e96ff.tar.gz qemu-abb4f2c9655503f14dc55064f29c4f59b07e96ff.tar.bz2 |
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
Diffstat (limited to 'ui/curses.c')
-rw-r--r-- | ui/curses.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/curses.c b/ui/curses.c index 479b77b..597e47f 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -271,7 +271,8 @@ static void curses_refresh(DisplayChangeListener *dcl) keysym = chr; } - keycode = keysym2scancode(kbd_layout, keysym & KEYSYM_MASK); + keycode = keysym2scancode(kbd_layout, keysym & KEYSYM_MASK, + false, false, false); if (keycode == 0) continue; |