Allow negative sign, decimal point for "numeric" text fields
This commit is contained in:
parent
c4b4b866ff
commit
9ebff91db0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue