diff options
author | arthurhung <arthurhung@google.com> | 2021-02-23 16:00:21 +0800 |
---|---|---|
committer | arthurhung <arthurhung@google.com> | 2021-02-24 23:42:34 +0800 |
commit | 070eb5adf37d307dbeb2e877ba85fea8ac83bd44 (patch) | |
tree | dc68cdb4cac11ba1b32a4324a79566797c918de1 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | f6ed5fc57c0955bf040438abd8bde6457c124a91 (diff) |
Refactor key handling in interceptKeyBeforeDispatching
Moving the logic from the if-else statements to a switch-case statement,
that could help us to maintain the key handling easier.
This also extracts below shortcuts into switch-case statement :
META-ALT : toggle caps lock.
ALT-TAB : display task switcher.
CTRL-SPACE/META-SPACE : keyboard layout switching.
Bug: 162194917
Bug: 127687575
Test: manual with connected keyboard
Change-Id: I1e392ac98135150421e2ea26daeb2a7b7821a618
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions