mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
do the haptic feedback onPress, not onKey
This commit is contained in:
@ -23,7 +23,9 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
|
|||||||
return keyboardView!!
|
return keyboardView!!
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPress(primaryCode: Int) {}
|
override fun onPress(primaryCode: Int) {
|
||||||
|
keyboardView?.performHapticFeedback()
|
||||||
|
}
|
||||||
|
|
||||||
override fun onRelease(primaryCode: Int) {}
|
override fun onRelease(primaryCode: Int) {}
|
||||||
|
|
||||||
@ -56,7 +58,6 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
keyboardView?.performHapticFeedback()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onText(text: CharSequence?) {}
|
override fun onText(text: CharSequence?) {}
|
||||||
|
Reference in New Issue
Block a user