Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#2958 closed defect (fixed)

dojo.connect of onkeypress prevents IE printable characters

Reported by: Douglas Hays Owned by: sjmiles
Priority: blocker Milestone:
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

If anyone calls dojo.connect(node,"onkeypress",blahblah) then all is well with Firefox. But now no printable character can be typed on IE 6 or 7. Nonprintable keys fire keypress events OK. This is preventing autocompleter from being tested on IE on 0.9M2.

Recreate test file:

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01EN"

"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>

<script type="text/javascript" src="dojo/dojo.js"

djConfig="isDebug: true">

</script>

</head>

<body>

<input id="someNode" value="some value">

<script>

var someNode = document.getElementById('someNode'); dojo.connect(someNode, "onkeypress", this, function(evt){});

</script>

</body> </html>

Change History (3)

comment:1 Changed 13 years ago by sjmiles

(In [8467]) On Mozilla, printable chars have a 0 keyCode, trying to simulate that on IE clobbers regular key handling. Refs #2958.

comment:2 Changed 13 years ago by sjmiles

Resolution: fixed
Status: newclosed

comment:3 Changed 12 years ago by (none)

Milestone: 0.9M2

Milestone 0.9M2 deleted

Note: See TracTickets for help on using tickets.