From 3f5a5fadf3349c3a3056198b945569cd38340bc2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 5 Jan 2022 17:20:46 +0100 Subject: [PATCH] vibrate on keypress --- .../simplemobiletools/keyboard/services/SimpleKeyboardIME.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt index 11eb126..2ed90c5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt @@ -6,6 +6,7 @@ import android.inputmethodservice.KeyboardView import android.text.TextUtils import android.view.KeyEvent import android.view.View +import com.simplemobiletools.commons.extensions.performHapticFeedback import com.simplemobiletools.keyboard.R // based on https://www.androidauthority.com/lets-build-custom-keyboard-android-832362/ @@ -56,6 +57,7 @@ class SimpleKeyboardIME : InputMethodService(), KeyboardView.OnKeyboardActionLis } } } + keyboardView?.performHapticFeedback() } override fun onText(text: CharSequence?) {}