Opened 14 years ago

Closed 14 years ago

#1576 closed defect (fixed)

Numeric input fields block move/delete keys

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: minor Milestone: BASE 2.17
Component: web Version:
Keywords: Cc:

Description

Fields in BASE that only take numeric values are usually blocked for letters. It seems like some other useful keys are also blocked:

  • LEFT/RIGHT arrow
  • HOME/END
  • DELETE
  • CTRL-C/CTRL-V/CTRL-X

Among the non-numeric keys it seems like it is only BACKSPACE that works.

Change History (3)

comment:1 by Nicklas Nordborg, 14 years ago

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 14 years ago

It seems like this is only an issue with Firefox. Internet Explorer doesn't send keypress events for the keys mentioned above. A sideeffect is that it is possible to paste a non-numeric value into the input fields when using IE. But at least the arrows and delete keys are working.

comment:3 by Nicklas Nordborg, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [5563]) Fixes #1576: Numeric input fields block move/delete keys

This modifies the Main.getEventCharCode() method so that it returns a predictable result for OnKeyPress events. The new method Main.getEventKeyCode() should be used with OnKeyDown and OnKeyUp events.

Note: See TracTickets for help on using tickets.