Skip to content

Commit 96cc36d

Browse files
committed
Always handle key presses
Otherwise there won't be any click feedback when "Show key popup" is disabled
1 parent d3bf5f0 commit 96cc36d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -753,10 +753,6 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
753753
}
754754

755755
private fun showPreview(keyIndex: Int) {
756-
if (!context.config.showPopupOnKeypress) {
757-
return
758-
}
759-
760756
val oldKeyIndex = mCurrentKeyIndex
761757
val previewPopup = mPreviewPopup
762758
mCurrentKeyIndex = keyIndex
@@ -784,6 +780,10 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
784780
}
785781
}
786782

783+
if (!context.config.showPopupOnKeypress) {
784+
return
785+
}
786+
787787
// If key changed and preview is on ...
788788
if (oldKeyIndex != mCurrentKeyIndex) {
789789
if (previewPopup.isShowing) {

0 commit comments

Comments
 (0)