diff options
author | Niklas Haas | 2019-08-18 12:50:38 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2019-08-21 12:25:46 +0200 |
commit | a923b471fc59389e49575f38f4db3cd622619bf5 (patch) | |
tree | 5fc5de0f17c2f60d02a6bfd2016ee79d6f439446 /ui/input-linux.c | |
parent | curses: assert get_wch return value is okay (diff) | |
download | qemu-a923b471fc59389e49575f38f4db3cd622619bf5.tar.gz qemu-a923b471fc59389e49575f38f4db3cd622619bf5.tar.xz qemu-a923b471fc59389e49575f38f4db3cd622619bf5.zip |
input-linux: add shift+shift as a grab toggle
We have ctrl-ctrl and alt-alt; why not shift-shift? That's my preferred
grab binding, personally.
Signed-off-by: Niklas Haas <git@haasn.xyz>
Message-id: 20190818105038.19520-1-qemu@haasn.xyz
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/input-linux.c')
-rw-r--r-- | ui/input-linux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/input-linux.c b/ui/input-linux.c index 59456fe765..a7b280b25b 100644 --- a/ui/input-linux.c +++ b/ui/input-linux.c @@ -113,6 +113,10 @@ static bool input_linux_check_toggle(InputLinux *il) return il->keydown[KEY_LEFTALT] && il->keydown[KEY_RIGHTALT]; + case GRAB_TOGGLE_KEYS_SHIFT_SHIFT: + return il->keydown[KEY_LEFTSHIFT] && + il->keydown[KEY_RIGHTSHIFT]; + case GRAB_TOGGLE_KEYS_META_META: return il->keydown[KEY_LEFTMETA] && il->keydown[KEY_RIGHTMETA]; |