From c944550ada6bf0ce6bea363a82571948389d0b0c Mon Sep 17 00:00:00 2001 From: linuxx Date: Sun, 13 Sep 2015 22:26:10 +0200 Subject: [PATCH] cancro: map keys as miui Use app_switch instead of deprecated menu. Also update longpress on home button action Change-Id: I5f8b53efa62c34f88ec1d953bcaef49ff9166c24 Signed-off-by: linuxx --- keylayout/atmel-maxtouch.kl | 2 +- keylayout/synaptics_rmi4_i2c.kl | 2 +- .../frameworks/base/core/res/res/values/config.xml | 14 +++++++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/keylayout/atmel-maxtouch.kl b/keylayout/atmel-maxtouch.kl index b8861be2..379bd9d3 100644 --- a/keylayout/atmel-maxtouch.kl +++ b/keylayout/atmel-maxtouch.kl @@ -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 diff --git a/keylayout/synaptics_rmi4_i2c.kl b/keylayout/synaptics_rmi4_i2c.kl index 2f364b26..c2de896e 100644 --- a/keylayout/synaptics_rmi4_i2c.kl +++ b/keylayout/synaptics_rmi4_i2c.kl @@ -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 diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index d9d7ca38..76ac44c1 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -278,7 +278,7 @@ 64 - Volume rocker For example, a device with Home, Back and Menu keys would set this config to 7. --> - 71 + 83 64 + + 3 + false