Helium314 / HeliBoard

Customizable and privacy-conscious open-source keyboard
Apache License 2.0
2.3k stars 88 forks source link

Swipe delete key: selects & deleted on release of key #408

Open Linecutterx opened 8 months ago

Linecutterx commented 8 months ago

Is your feature request related to a problem? Please describe.

The swipe for multiple character delete option is a great idea but too fast, unpredictable & irreversible to be usable Describe the solution you'd like

Either a speed setting (time in ms per character deleted) or the option for it to highlight the text to be deleted (left/right swipe as with the space bar) before committing to the deletion. I'd prefer the latter Use case

I keep deleting too much. This would help. Describe alternatives you've considered

Additional context

Anonymous2716 commented 8 months ago

It deletes on key release and reversible. There is undo redo keys at the toolbar. It does select the text as we swipe. Just like we select when we copy. Well there some improvements needed maybe. But we have to swipe right way instead of holding the backspace button.

Linecutterx commented 8 months ago

I hadn't realised that. Seems to work differently in different apps, at least at times (haven't really explored to see if behaviour changes at times within the same app). Hence the issue Sometimes seems to trigger the key repeat function (rapidly!) instead of the "select before delete" & starts removing characters instead of highlighting them. Could be user finger error I suppose. Is the key repeat supposed to be turned off for the delete key??

Helium314 commented 8 months ago

Is the key repeat supposed to be turned off for the delete key??

No, it works normally unless you move the finger enough that a swipe is detected.

Did you use a terminal emulator when you concluded that text isn't highlighted on delete swipe? Here there is nothing that can be done, as the keyboard simply cannot highlight the text.

Linecutterx commented 8 months ago

No, it seemed to be a "feature" so I stated avoiding it as I couldn't predict the outcome. It seems possible to get a partial delete, then highlighting. Here are the letters of the alphabet (A-Z). Then a Swipe delete (screen grabbed before lifting my finger): Screenshot_20240114_112254_Mull-01