From e52a30ff4a4bccb7a970d29be25fdfc214a383c5 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 16 Apr 2017 12:18:13 +0200 Subject: [PATCH] Perform haptic feedback on extra keys Fixes #269. --- app/src/main/java/com/termux/app/ExtraKeysView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/termux/app/ExtraKeysView.java b/app/src/main/java/com/termux/app/ExtraKeysView.java index 3ad3b83dc9..fec7576016 100644 --- a/app/src/main/java/com/termux/app/ExtraKeysView.java +++ b/app/src/main/java/com/termux/app/ExtraKeysView.java @@ -3,6 +3,7 @@ import android.content.Context; import android.util.AttributeSet; import android.view.Gravity; +import android.view.HapticFeedbackConstants; import android.view.KeyEvent; import android.view.View; import android.widget.Button; @@ -144,6 +145,7 @@ void reload() { button.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { + finalButton.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP); View root = getRootView(); switch (buttonText) { case "CTRL":