format-as-currency icon indicating copy to clipboard operation
format-as-currency copied to clipboard

Typing space causes strange behavior

Open simonsheridan opened this issue 10 years ago • 2 comments

typing space moves the cursor forward without changing the values. I think the best solution is probably to ignore the space character completely but not sure if this might be an issue under any circumstances.

@bcherny again, if you agree that this is an issue I will take a look and see if i can submit a PR

simonsheridan avatar Jun 11 '15 20:06 simonsheridan

In general, I agree that characters which don't match /[\d\.]+/ should be ignored, and the cursor/input should not be affected. In this sense this is a dupe of #2.

Feel free submit a pr!

bcherny avatar Jun 11 '15 20:06 bcherny

sounds good!

simonsheridan avatar Jun 11 '15 21:06 simonsheridan