thelebdev / ng2-currency-mask

A very simple currency mask directive that allows using a number attribute with the ngModel.
MIT License
0 stars 3 forks source link

Allow Negative Character entered first #30

Open joevandebilt opened 3 years ago

joevandebilt commented 3 years ago

Allow Negative character to be entered first to set the field to negative. Adds new path in ChangeToNegative function which handles the raw display of the value when the input has no value to begin with, then upon further character being entered, flips the value to negative.

Added new path to backspace/delete key handling to remove negative value when attempted