am 77c3e4b9: Merge "Make getFallbackAction return false when there is none." into honeycomb
* commit '77c3e4b9fdab1f48cfa95cddb4a110946f4a1cd8': Make getFallbackAction return false when there is none.
This commit is contained in:
commit
5243d74463
@ -185,10 +185,12 @@ bool KeyCharacterMap::getFallbackAction(int32_t keyCode, int32_t metaState,
|
||||
const Key* key;
|
||||
const Behavior* behavior;
|
||||
if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
|
||||
if (behavior->fallbackKeyCode) {
|
||||
outFallbackAction->keyCode = behavior->fallbackKeyCode;
|
||||
outFallbackAction->metaState = metaState & ~behavior->metaState;
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
#if DEBUG_MAPPING
|
||||
LOGD("getFallbackKeyCode: keyCode=%d, metaState=0x%08x ~ Result %s, "
|
||||
"fallback keyCode=%d, fallback metaState=0x%08x.",
|
||||
|
Loading…
Reference in New Issue
Block a user