Allow negative sign, decimal point for "numeric" text fields

This commit is contained in:
Lance Edgar 2016-08-05 15:12:36 -05:00
parent c4b4b866ff
commit 9ebff91db0

View file

@ -19,6 +19,12 @@ function key_modifies(event) {
} else if (event.which >= 96 && event.which <= 105) { // Numeric (10-Key)
return true;
} else if (event.which == 173) { // hyphen (negative sign)
return true;
} else if (event.which == 190) { // period/decimal
return true;
} else if (event.which == 8) { // Backspace
return true;