do not trigger haptic feedback on pressing empty space

This commit is contained in:
tibbi 2022-01-16 22:18:37 +01:00
parent 91eaaad2f8
commit d48742d083
1 changed files with 3 additions and 1 deletions

View File

@ -42,8 +42,10 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
}
override fun onPress(primaryCode: Int) {
if (primaryCode != 0) {
keyboardView?.performHapticFeedback()
}
}
override fun onStartInput(attribute: EditorInfo?, restarting: Boolean) {
super.onStartInput(attribute, restarting)