Ticket #111 (new defect)
bug with event.code and event.key in firefox,ie,konqueror(khtml)
| Reported by: | urielkatz | Owned by: | kamicane |
|---|---|---|---|
| Type: | defect | Priority: | trivial |
| Milestone: | Mootools version 1.3 | Component: | Core |
| Keywords: | Cc: |
Description (last modified by kamicane) (diff)
in firefox the Event have two properties keyCode and charCode,when pressing on delete keyCode is 46 and charCode is 0,when pressing the dot the charCode is 46 and keyCode is 0,but in both cases event.which is 46 because as far as i understand which is basically (event.keyCode
i think this also happen for the other keys near the delete(like page up/down,end,insert,home).
UPDATE:from some testing in konqueror i see that when pressing the dot event.keyCode,event.charCode and event.which are all 46 and when pressing the delete event.keyCode is 127 and event.charCode is 0.
as i understand there is not standard for key events in w3c dom,there is alot problems with compatibility in browsers.