Results 1 to 2 of 2

Thread: EventObject.hasModifier() returns undefined in chrome

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-13279 in 5.0.0b3.
  1. #1
    Sencha Premium User varsos's Avatar
    Join Date
    Feb 2008
    Location
    Long Island, NY
    Posts
    367

    Default EventObject.hasModifier() returns undefined in chrome

    Hi,

    In Chrome the EventObject.hasModifier() returns undefined, and should return true/false.
    Code:
    hasModifier : function(){
            return this.ctrlKey || this.altKey || this.shiftKey || this.metaKey;
        },
    The issue is that all are false and this.metaKey is undefined.

    For now I have patched it to
    Code:
    hasModifier : function(){
            return (this.ctrlKey || this.altKey || this.shiftKey || this.metaKey) ? true :false;
        },
    varsos

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Posting Permissions

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