PDA

View Full Version : EventObject.preventDefault doesn't work in IE8?



dbassett74
27 Aug 2009, 7:41 AM
Seems like in IE8, the e.preventDefault() line in the below code has no affect:



keydown: function(cbo, e) {
var c = e.getCharCode();
if (c == e.TAB) {
if (Ext.isEmpty(pnl.getComponent("AgencyCombo").getValue())) {
e.preventDefault();
pnl.getComponent("AgencyCombo").focus(true, 100);
}
}
}


Seems to work just fine in IE6, FF3, Chrome, Safari and Opera. Is this a known issue and are there any work arounds?

nebaff
9 Nov 2011, 6:23 AM
i'm trying to override ctrl+s

works in google docs, so possible with IE8