mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-02-07 15:38:38 +01:00
do not trigger haptic feedback on pressing empty space
This commit is contained in:
parent
91eaaad2f8
commit
d48742d083
@ -42,7 +42,9 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
|
||||
}
|
||||
|
||||
override fun onPress(primaryCode: Int) {
|
||||
keyboardView?.performHapticFeedback()
|
||||
if (primaryCode != 0) {
|
||||
keyboardView?.performHapticFeedback()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onStartInput(attribute: EditorInfo?, restarting: Boolean) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user