Opened 9 years ago
Closed 9 years ago
#1865 closed enhancement (fixed)
Allow LEFT, RIGHT and DELETE keys in numeric fields
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.3.2 |
Component: | web | Version: | |
Keywords: | Cc: |
Description
It is a bit annoying since a user can only move the cursor with the mouse.
Change History (2)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Hmm... seems like this is a Firefox only issue. Internet explorer doesn't send 'keyup' events for control keys. Same with Opera.
Further investigation reveals that IE and Opera always seem to report the same value for
event.keyCode
andevent.charCode
, but Firefox haveevent.charCode=0
for control keys.So instead of checking either the
charCode
or thekeyCode
we should simply only check thecharCode
and allow 0.