diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-12-09 14:25:38 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-12-09 14:25:38 -0800 |
commit | fa7fa9a5ba796eabb2dadb8e2ce1b97da38e939e (patch) | |
tree | 69f1929304b224494121d8e592078f269028e1f3 /services | |
parent | ec3a88dee2c7d77c09eaad0c297f077744033d48 (diff) | |
parent | 944c985b4199e6e029568ea87004c9727e469cc0 (diff) | |
download | frameworks_base-fa7fa9a5ba796eabb2dadb8e2ce1b97da38e939e.zip frameworks_base-fa7fa9a5ba796eabb2dadb8e2ce1b97da38e939e.tar.gz frameworks_base-fa7fa9a5ba796eabb2dadb8e2ce1b97da38e939e.tar.bz2 |
am 944c985b: am e0e9fd98: Merge "Fix system hotkey handling." into ics-mr1
* commit '944c985b4199e6e029568ea87004c9727e469cc0':
Fix system hotkey handling.
Diffstat (limited to 'services')
-rw-r--r-- | services/input/InputDispatcher.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp index 382f4d9..5f31f05 100644 --- a/services/input/InputDispatcher.cpp +++ b/services/input/InputDispatcher.cpp @@ -4312,12 +4312,23 @@ bool InputDispatcher::InputState::trackKey(const KeyEntry* entry, mKeyMementos.removeAt(index); return true; } + /* FIXME: We can't just drop the key up event because that prevents creating + * popup windows that are automatically shown when a key is held and then + * dismissed when the key is released. The problem is that the popup will + * not have received the original key down, so the key up will be considered + * to be inconsistent with its observed state. We could perhaps handle this + * by synthesizing a key down but that will cause other problems. + * + * So for now, allow inconsistent key up events to be dispatched. + * #if DEBUG_OUTBOUND_EVENT_DETAILS LOGD("Dropping inconsistent key up event: deviceId=%d, source=%08x, " "keyCode=%d, scanCode=%d", entry->deviceId, entry->source, entry->keyCode, entry->scanCode); #endif return false; + */ + return true; } case AKEY_EVENT_ACTION_DOWN: { |