Hello,

I found a problem in Internet Explorer 6 related to "keypress" event
handling.
I have an instance of qx.ui.form.TextField and attach to it the "keypress"
event handler that should process "Enter" key pressing.
The problem is "keypress" event is fired twice for "Enter" key. There is not
such problem in Firefox 2.

The code snippet:
var txtSearchText = new qx.ui.form.TextField(this.tr("Search Keyword"));
txtSearchText.set({
    width : "80%"
});
txtSearchText.addEventListener("keypress", function(oEvent) {
    if (oEvent.getKeyIdentifier() == "Enter") {
        console.log("txtSearchText.keypress");
        console.open();
    }
}, txtSearchText);
layRow1.add(txtSearchText);

Any suggestions, solutions and workarounds are welcomed.

Best regards,
Dioc

-- 
View this message in context: 
http://www.nabble.com/A-possible-bug-in-IE6-with-%E2%80%9Ckeypress%E2%80%9D-event-handling-in-TextField-tf4035706.html#a11464907
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to