[Dojo-interest] Enter key in ComboBox
Dan Kogan Hotmail
dan_kogan at hotmail.com
Tue Jan 16 15:57:20 MST 2007
Hello all.
Please help me figure out how to capture Enter in the ComboBox
Following code suggested by Will Ryan works in Firefox
cb = dojo.widget.byId('completionsComboBox');
dojo.event.connect(cb, "onKeyUp", function(keyPressed) {
if(keyPressed && keyPressed.keyCode==13) { ... } });
and does not (!!!!) work in IE 6
Enter event is getting swallowed in IE inside _selectOption function in either of these calls
this._hideResultList();
this._setSelectedRange(this.textInputNode, 0, null);
in ComboBox.js ( version 4.1 )
Thanks,
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070116/0949f315/attachment-0001.html
More information about the Dojo-interest
mailing list