Skip to content

Feature: vibrate for repeated inputs #381#2355

Open
glen-nicol wants to merge 1 commit intoHeliBorg:mainfrom
glen-nicol:vibrate_on_delete_hold
Open

Feature: vibrate for repeated inputs #381#2355
glen-nicol wants to merge 1 commit intoHeliBorg:mainfrom
glen-nicol:vibrate_on_delete_hold

Conversation

@glen-nicol
Copy link

This is primarily noticeable when holding the delete key to delete multiple characters or when using the keyboard to move the cursor.

This implements the desired behavior of #381. It does not implement the vibrate on paste behavior mentioned further down the issue.

The change is remarkably simple. Just perform haptics on repeat key presses. It works great for delete and swipe at low and high vibration durations on my test phone (Pixel 3a). And holding other keys doesn't trigger a repeat since they have a long press handler.

This is primarily noticeable when holding the delete key to delete multiple characters.
@Helium314
Copy link
Collaborator

@devycarol you did some work on haptic feedback, and iirc have plans to do more. Do you see any issues with this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants