From c5cb5efabd18e5c922706a3f926b0dcd77005ff1 Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Fri, 27 Sep 2024 18:33:35 +0300 Subject: [PATCH] Do modal input when showing more keys panel (fixes Talkback bug) --- java/src/org/futo/inputmethod/keyboard/KeyboardSwitcher.java | 4 +--- java/src/org/futo/inputmethod/latin/LatinIME.kt | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/java/src/org/futo/inputmethod/keyboard/KeyboardSwitcher.java b/java/src/org/futo/inputmethod/keyboard/KeyboardSwitcher.java index d00e64276..ebdaf5c09 100644 --- a/java/src/org/futo/inputmethod/keyboard/KeyboardSwitcher.java +++ b/java/src/org/futo/inputmethod/keyboard/KeyboardSwitcher.java @@ -329,9 +329,7 @@ public final class KeyboardSwitcher implements SwitchActions { } public boolean isShowingMoreKeysPanel() { - if (isShowingEmojiPalettes()) { - return false; - } + if(mKeyboardView == null) return false; return mKeyboardView.isShowingMoreKeysPanel(); } diff --git a/java/src/org/futo/inputmethod/latin/LatinIME.kt b/java/src/org/futo/inputmethod/latin/LatinIME.kt index 4d9b72996..d215cfc45 100644 --- a/java/src/org/futo/inputmethod/latin/LatinIME.kt +++ b/java/src/org/futo/inputmethod/latin/LatinIME.kt @@ -685,7 +685,7 @@ class LatinIME : InputMethodServiceCompose(), LatinIMELegacy.SuggestionStripCont } } - if(isInputModal) { + if(isInputModal || latinIMELegacy.mKeyboardSwitcher?.isShowingMoreKeysPanel == true) { touchableInsets = Insets.TOUCHABLE_INSETS_REGION touchableRegion.set(0, 0, composeView!!.width, composeView!!.height) }