Skip to content

Commit

Permalink
cancro: map keys as miui
Browse files Browse the repository at this point in the history
Use app_switch instead of deprecated menu. Also update longpress on home button action

Change-Id: I5f8b53efa62c34f88ec1d953bcaef49ff9166c24
Signed-off-by: linuxx <[email protected]>
  • Loading branch information
linuxx committed Sep 14, 2015
1 parent d4834e7 commit c944550
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion keylayout/atmel-maxtouch.kl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN

key 139 MENU VIRTUAL
key 139 APP_SWITCH VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
2 changes: 1 addition & 1 deletion keylayout/synaptics_rmi4_i2c.kl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN

key 139 MENU
key 139 APP_SWITCH
key 102 HOME
key 158 BACK
key 217 SEARCH
14 changes: 13 additions & 1 deletion overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
64 - Volume rocker
For example, a device with Home, Back and Menu keys would set this
config to 7. -->
<integer name="config_deviceHardwareKeys">71</integer>
<integer name="config_deviceHardwareKeys">83</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
Expand All @@ -294,6 +294,18 @@
config to 7. -->
<integer name="config_deviceHardwareWakeKeys">64</integer>

<!-- Control the behavior when the user long presses the home button
0 - Nothing
1 - Menu key
2 - Recent apps view in SystemUI
3 - Launch assist intent
4 - Voice Search
5 - In-app Search
This needs to match the constants in
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
-->
<integer name="config_longPressOnHomeBehavior">3</integer>

<!-- Disable lockscreen rotation by default -->
<bool name="config_enableLockScreenRotation">false</bool>

Expand Down

0 comments on commit c944550

Please sign in to comment.