Skip to content

Commit

Permalink
Add haptic feedback when typing on keyboard
Browse files Browse the repository at this point in the history
Signed-off-by: Songlin Jiang <sjiang@igalia.com>
  • Loading branch information
HollowMan6 committed Oct 18, 2023
1 parent b01b7ec commit ae5efb0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ public void onConfigurationChanged(Configuration newConfig) {
@Override
public void onPress(int primaryCode) {
Log.d(LOGTAG, "Keyboard onPress " + primaryCode);
mWidgetManager.triggerHapticFeedback();
}

@Override
Expand Down Expand Up @@ -606,6 +607,7 @@ public void onLongPress(Keyboard.Key popupKey) {
handleDomainLongPress();
mIsLongPress = true;
}
mWidgetManager.triggerHapticFeedback();
}

public void onMultiTap(Keyboard.Key key) {
Expand Down

0 comments on commit ae5efb0

Please sign in to comment.