do not trigger haptic feedback on pressing empty space
This commit is contained in:
parent
91eaaad2f8
commit
d48742d083
|
@ -42,8 +42,10 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPress(primaryCode: Int) {
|
override fun onPress(primaryCode: Int) {
|
||||||
|
if (primaryCode != 0) {
|
||||||
keyboardView?.performHapticFeedback()
|
keyboardView?.performHapticFeedback()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onStartInput(attribute: EditorInfo?, restarting: Boolean) {
|
override fun onStartInput(attribute: EditorInfo?, restarting: Boolean) {
|
||||||
super.onStartInput(attribute, restarting)
|
super.onStartInput(attribute, restarting)
|
||||||
|
|
Loading…
Reference in New Issue