amarkes / br-mask

MIT License
116 stars 56 forks source link

Feature Request: prevent cursor from jumping to the end of the input #32

Open kyleabens opened 4 years ago

kyleabens commented 4 years ago

I would love to have the ability to prevent the cursor from jumping to the end anytime a keydown event fires. It makes editing existing values difficult because if you just want to delete one digit and add a new one in place of it you have to delete then move the cursor back to where you just were.

Thanks!