You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I press Ctrl+Backspace, I'd expect the last word to be deleted – this is the behavior of most text input boxes, and Monkeytype. Instead, it adds a new character.
Solution
I don't know exactly how to implement this feature. It could be an optional argument in the CLI.
Additional context
Video demonstrating the behavior. I mistype the word "possible" and attempt to delete the whole word.
Thokr_ctrl+backspace.mp4
The text was updated successfully, but these errors were encountered:
Unfortunately this is a limitation of the terminal backend crossterm which handles user input. Essentially the control modifier never registers when a user hits backspace. You can read more about the issue here.
I'm keeping a close eye on this issue myself because I also want to see this added! I'm glad you said what you did though, because in my head ctrl+backspace should delete the whole line back to the beginning, but I think going back to the start of the current word makes more sense for what this is. You mentioned that most typing tests do that, but out of curiosity if you press ctrl+backspace in a normal text field or document, does it delete the entire line as it does for me? That's always what I've associated ctrl+backspace as doing.
Ah, that's tough! I guess we'll just have to wait on that crossterm issue. Ctrl+backspace does just delete the last word for me, I assumed that's how it works for most people – never heard of it deleting a line. TIL
Problem
When I press Ctrl+Backspace, I'd expect the last word to be deleted – this is the behavior of most text input boxes, and Monkeytype. Instead, it adds a new character.
Solution
I don't know exactly how to implement this feature. It could be an optional argument in the CLI.
Additional context
Video demonstrating the behavior. I mistype the word "possible" and attempt to delete the whole word.
Thokr_ctrl+backspace.mp4
The text was updated successfully, but these errors were encountered: