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:
Jeff Brown 2011-01-14 18:01:27 -08:00 committed by Android Git Automerger
commit 5243d74463

View File

@ -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.",