Add support for 10-key hyphen/period keys for numeric input fields
This commit is contained in:
parent
f816098199
commit
bfcf6a9500
|
@ -19,10 +19,10 @@ 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)
|
||||
} else if (event.which == 109 || event.which == 173) { // hyphen (negative sign)
|
||||
return true;
|
||||
|
||||
} else if (event.which == 190) { // period/decimal
|
||||
} else if (event.which == 110 || event.which == 190) { // period/decimal
|
||||
return true;
|
||||
|
||||
} else if (event.which == 8) { // Backspace
|
||||
|
|
Loading…
Reference in a new issue