Skip to content

Commit

Permalink
Perform haptic feedback on extra keys
Browse files Browse the repository at this point in the history
Fixes termux#269.
  • Loading branch information
fornwall committed Apr 16, 2017
1 parent 6e5d5ba commit 31b37d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/termux/app/ExtraKeysView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 31b37d5

Please sign in to comment.