do the haptic feedback onPress, not onKey
This commit is contained in:
parent
91b3557c2d
commit
3714a61ad7
1 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,9 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
|
|||
return keyboardView!!
|
||||
}
|
||||
|
||||
override fun onPress(primaryCode: Int) {}
|
||||
override fun onPress(primaryCode: Int) {
|
||||
keyboardView?.performHapticFeedback()
|
||||
}
|
||||
|
||||
override fun onRelease(primaryCode: Int) {}
|
||||
|
||||
|
@ -56,7 +58,6 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
|
|||
}
|
||||
}
|
||||
}
|
||||
keyboardView?.performHapticFeedback()
|
||||
}
|
||||
|
||||
override fun onText(text: CharSequence?) {}
|
||||
|
|
Loading…
Reference in a new issue