Results 1 to 2 of 2

Thread: EventObject.preventDefault doesn't work in IE8?

  1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    543
    Vote Rating
    0
      0  

    Default EventObject.preventDefault doesn't work in IE8?

    Seems like in IE8, the e.preventDefault() line in the below code has no affect:

    Code:
    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?

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    20
    Vote Rating
    0
      0  

    Default +1

    i'm trying to override ctrl+s

    works in google docs, so possible with IE8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •