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

Verified Commit 1ecc4a14 authored by Tim Zimmermann's avatar Tim Zimmermann Committed by Ahmed Harhash
Browse files

universal9810: keylayout: remap bixby key to MENU

* MENU is the only one which makes both long press and
  wakeup settings working
* Also set assist as default action for menu long press

Change-Id: I3a019dacf01758e965cca75b9b22d4a1eb1b37fb
parent 67bb288e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,4 +5,4 @@ key 114 VOLUME_DOWN
key 115   VOLUME_UP
key 116   POWER
key 172   WAKEUP
key 703   ASSIST
key 703   MENU
+18 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@
            64 - Volume rocker
         For example, a device with Home, Back and Menu keys would set this
         config to 7. -->
    <integer name="config_deviceHardwareKeys">72</integer>
    <integer name="config_deviceHardwareKeys">68</integer>

    <!-- Hardware keys present on the device with the ability to wake, stored as a bit field.
         This integer should equal the sum of the corresponding value for each
@@ -57,7 +57,23 @@
            64 - Volume rocker
         For example, a device with Home, Back and Menu keys would set this
         config to 7. -->
    <integer name="config_deviceHardwareWakeKeys">73</integer>
    <integer name="config_deviceHardwareWakeKeys">69</integer>

    <!-- Control the behavior when the user long presses the menu button.
            0 - Nothing
            1 - Menu key
            2 - Recent apps view in SystemUI
            3 - Launch assist intent
            4 - Voice Search
            5 - In-app Search
            6 - Launch camera
            7 - Sleep
            8 - Last app
            9 - Toggle split screen
         This needs to match the enums in
         sdk/src/java/org/lineageos/internal/util/DeviceKeysConstants.java.
    -->
    <integer name="config_longPressOnMenuBehavior">3</integer>

    <!-- Device have higher than normal aspect ratio sreen -->
    <bool name="config_haveHigherAspectRatioScreen">true</bool>