Permalink
Browse files

Fix keylayouts for ICS.

Some Crespo devices have a single combined touchscreen and use
the framework virtual key support instead of having a separate
capacitive keypad sensor.  The default key layout changed in
Honeycomb which had the effect of breaking the HOME key on
these devices.  Added a new key layout to explicitly map
the virtual keys.

Also fixed an old key layout that used obsolete syntax.

Bug: 4901533
Change-Id: I3281b516ea44a150ec85da29bc5f0f3c00da2e6b
  • Loading branch information...
1 parent fc398af commit ceea45bfb079336d590deed04b8fc74521a297b6 @j9brown j9brown committed Jun 23, 2011
Showing with 39 additions and 4 deletions.
  1. +3 −1 device_base.mk
  2. +3 −3 herring-keypad.kl
  3. +15 −0 mxt224_ts_input.kcm
  4. +18 −0 mxt224_ts_input.kl
View
@@ -61,7 +61,9 @@ PRODUCT_COPY_FILES += \
device/samsung/crespo/cypress-touchkey.kl:system/usr/keylayout/cypress-touchkey.kl \
device/samsung/crespo/cypress-touchkey.kcm:system/usr/keychars/cypress-touchkey.kcm \
device/samsung/crespo/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
- device/samsung/crespo/sec_jack.kcm:system/usr/keychars/sec_jack.kcm
+ device/samsung/crespo/sec_jack.kcm:system/usr/keychars/sec_jack.kcm \
+ device/samsung/crespo/mxt224_ts_input.kl:system/usr/keylayout/mxt224_ts_input.kl \
+ device/samsung/crespo/mxt224_ts_input.kcm:system/usr/keychars/mxt224_ts_input.kcm
#Bluetooth setup
PRODUCT_COPY_FILES += \
View
@@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-114 VOLUME_DOWN WAKE
-115 VOLUME_UP WAKE
-116 POWER WAKE
+key 114 VOLUME_DOWN WAKE
+key 115 VOLUME_UP WAKE
+key 116 POWER WAKE
View
@@ -0,0 +1,15 @@
+# Copyright (C) 2011 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+type SPECIAL_FUNCTION
View
@@ -0,0 +1,18 @@
+# Copyright (C) 2011 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+key 158 BACK WAKE
+key 139 MENU WAKE
+key 217 SEARCH WAKE
+key 102 HOME WAKE

0 comments on commit ceea45b

Please sign in to comment.