aradzie / keybr.com

The smartest way to learn touch typing and improve your typing speed.
https://www.keybr.com/
GNU Affero General Public License v3.0
2.04k stars 184 forks source link

FEATURE - Delete word if typed wrong #127

Open Hoffmano opened 9 months ago

Hoffmano commented 9 months ago

Hi I am interested in code this feature, can anyone help me understand the project structure.

CONTEXT If i typed something wrong I think that should be a good way to practice rewrite the hole word aiming to improve the hole character sequence

FEATURE

  1. Create a new config option
  2. If type some character wrongly delete hole word
aradzie commented 9 months ago

I think you can use Ctrl+Delete to delete the whole word.

Take a look here -- https://github.com/aradzie/keybr.com/blob/master/packages/keybr-textinput-events/lib/inputhandler.ts#L148

Here we interpret the deleteWordBackward command, which is bound to Ctrl+Backspace on Windows and Linux.

danfbfern commented 8 months ago

Here we interpret the deleteWordBackward command, which is bound to Ctrl+Backspace on Windows and Linux.

Tried this and didn't work, but with Alt+Backspace (Option+Backspace on Mac) worked as intended.