Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 12d223ce authored by Asmita Poddar's avatar Asmita Poddar
Browse files

Add support for mouse keys on non-QWERTY keyboard layouts

Depending on the keyboard layout in use, the mouse keys key codes should
change such that the position of the keys stays the same.
The default is to return the key codes for the
default layout (QWERTY), otherwise return the key code of the given
location on a reference QWERTY keyboard layout.
Also, the user could change the keyboard layout from settings at any
time, which would change the key character map for that device.
Hence, the key code to enum mapping should be updated every time a change
in keyboard is detected. To ensure thread safety all access to the enum
mapping for a particular device should happen from the same thread,
i.e., the handler thread.

bug: 341799888
Test: Manual testing on multiple QWERTY and DVORAK keyboard layouts,
      atest FrameworksServicesTests:MouseKeysInterceptorTest
Flag: EXEMPT bugfix
Change-Id: I4dbea8d4def95f7a710dd3b85e46d214f05fc94f
parent b381000f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment