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

Commit 47fb4df5 authored by Josep del Rio's avatar Josep del Rio
Browse files

Rely on Linux key definitions for 0x01 HID usages

We recently introduced two new keys (lock and do not disturb) which
were defined with HID even they were in the 0x01 page; this
introduced a minor bug, as it's overriding the system sleep key,
so that key will now lock the device instead of putting the system
in sleep mode. This CL removes the 0x01 HID definitions and adds
an entry for do not disturb following the Linux definition.

Bug: 409328696
Flag: EXEMPT bugfix
Test: Flashed on device, tested with Logi K650 in Chrome mode
Change-Id: I198caaeddc3b8d0ed58f2fa2dbd659a194e0e5c8
parent c384d4eb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -426,14 +426,13 @@ key 582 VOICE_ASSIST
key 583   ASSIST
key 585   EMOJI_PICKER
key 586   DICTATE
key 591   DO_NOT_DISTURB
key 656   MACRO_1
key 657   MACRO_2
key 658   MACRO_3
key 659   MACRO_4

# Keys defined by HID usages
key usage 0x010082 LOCK                      FALLBACK_USAGE_MAPPING
key usage 0x01009B DO_NOT_DISTURB            FALLBACK_USAGE_MAPPING
key usage 0x0c0065 SCREENSHOT                FALLBACK_USAGE_MAPPING
key usage 0x0c0067 WINDOW                    FALLBACK_USAGE_MAPPING
key usage 0x0c006F BRIGHTNESS_UP             FALLBACK_USAGE_MAPPING