Perform haptic feedback on extra keys

Fixes #269.
This commit is contained in:
Fredrik Fornwall
2017-04-16 12:18:13 +02:00
parent 779b1ca1f8
commit adc43c40c5

View File

@@ -3,6 +3,7 @@ package com.termux.app;
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 @@ public final class ExtraKeysView extends GridLayout {
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
finalButton.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP);
View root = getRootView();
switch (buttonText) {
case "CTRL":