• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Revisionf8a5819cd79ff5f119cfbcf1f345b9bdd8c17b8c (tree)
Zeit2014-08-27 19:18:39
Autorjuntingwang <Junting.Wang@wind...>
CommiterChih-Wei Huang

Log Message

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>

Ändern Zusammenfassung

Diff

--- a/services/input/EventHub.cpp
+++ b/services/input/EventHub.cpp
@@ -1206,7 +1206,11 @@ status_t EventHub::openDeviceLocked(const char *devicePath, bool ignoreAlreadyOp
12061206
12071207 // 'Q' key support = cheap test of whether this is an alpha-capable kbd
12081208 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+ }
12101214 }
12111215
12121216 // See if this device has a DPAD.