Do modal input when showing more keys panel (fixes Talkback bug)

This commit is contained in:
Aleksandras Kostarevas 2024-09-27 18:33:35 +03:00
parent 7fdf54ec61
commit c5cb5efabd
2 changed files with 2 additions and 4 deletions

View File

@ -329,9 +329,7 @@ public final class KeyboardSwitcher implements SwitchActions {
} }
public boolean isShowingMoreKeysPanel() { public boolean isShowingMoreKeysPanel() {
if (isShowingEmojiPalettes()) { if(mKeyboardView == null) return false;
return false;
}
return mKeyboardView.isShowingMoreKeysPanel(); return mKeyboardView.isShowingMoreKeysPanel();
} }

View File

@ -685,7 +685,7 @@ class LatinIME : InputMethodServiceCompose(), LatinIMELegacy.SuggestionStripCont
} }
} }
if(isInputModal) { if(isInputModal || latinIMELegacy.mKeyboardSwitcher?.isShowingMoreKeysPanel == true) {
touchableInsets = Insets.TOUCHABLE_INSETS_REGION touchableInsets = Insets.TOUCHABLE_INSETS_REGION
touchableRegion.set(0, 0, composeView!!.width, composeView!!.height) touchableRegion.set(0, 0, composeView!!.width, composeView!!.height)
} }