frameworks/base
Revision | f8a5819cd79ff5f119cfbcf1f345b9bdd8c17b8c (tree) |
---|---|
Time | 2014-08-27 19:18:39 |
Author | juntingwang <Junting.Wang@wind...> |
Commiter | Chih-Wei Huang |
Set PS2 Keyboard controller as not a ketboard type
The Eventhub detects the platforms built-in PS/2 keyboard controller
as a physical keyboard. So the system will not display the software
keyboard by default. Modify it device type in Keyboard-less tablets,
so that ActivityManager will not ignore the PS/2 controller.
Issue: AXIA-1875
Change-Id: Ia5b7592e82aaf1970066bab5e9ca5f46ac83ab1c
Signed-off-by: juntingwang <Junting.Wang@windriver.com>
@@ -1206,7 +1206,11 @@ status_t EventHub::openDeviceLocked(const char *devicePath, bool ignoreAlreadyOp | ||
1206 | 1206 | |
1207 | 1207 | // 'Q' key support = cheap test of whether this is an alpha-capable kbd |
1208 | 1208 | if (hasKeycodeLocked(device, AKEYCODE_Q)) { |
1209 | - device->classes |= INPUT_DEVICE_CLASS_ALPHAKEY; | |
1209 | + char value[PROPERTY_VALUE_MAX]; | |
1210 | + property_get("ro.ignore_atkbd", value, "0"); | |
1211 | + if ((device->identifier.name != "AT Translated Set 2 keyboard") || (!atoi(value))) { | |
1212 | + device->classes |= INPUT_DEVICE_CLASS_ALPHAKEY; | |
1213 | + } | |
1210 | 1214 | } |
1211 | 1215 | |
1212 | 1216 | // See if this device has a DPAD. |