mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 22:12:46 +00:00
parent
f859e80aca
commit
42f7b62543
2 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ class KeyboardActionListenerImpl(private val latinIME: LatinIME, private val inp
|
||||||
|
|
||||||
override fun onPressKey(primaryCode: Int, repeatCount: Int, isSinglePointer: Boolean) {
|
override fun onPressKey(primaryCode: Int, repeatCount: Int, isSinglePointer: Boolean) {
|
||||||
keyboardSwitcher.onPressKey(primaryCode, isSinglePointer, latinIME.currentAutoCapsState, latinIME.currentRecapitalizeState)
|
keyboardSwitcher.onPressKey(primaryCode, isSinglePointer, latinIME.currentAutoCapsState, latinIME.currentRecapitalizeState)
|
||||||
|
latinIME.hapticAndAudioFeedback(primaryCode, repeatCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onReleaseKey(primaryCode: Int, withSliding: Boolean) {
|
override fun onReleaseKey(primaryCode: Int, withSliding: Boolean) {
|
||||||
|
|
|
@ -1697,7 +1697,7 @@ public class LatinIME extends InputMethodService implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void hapticAndAudioFeedback(final int code, final int repeatCount) {
|
public void hapticAndAudioFeedback(final int code, final int repeatCount) {
|
||||||
final MainKeyboardView keyboardView = mKeyboardSwitcher.getMainKeyboardView();
|
final MainKeyboardView keyboardView = mKeyboardSwitcher.getMainKeyboardView();
|
||||||
if (keyboardView != null && keyboardView.isInDraggingFinger()) {
|
if (keyboardView != null && keyboardView.isInDraggingFinger()) {
|
||||||
// No need to feedback while finger is dragging.
|
// No need to feedback while finger is dragging.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue