WordPress.org

Make WordPress Core

Ticket #43560: 43560.diff

File 43560.diff, 992 bytes (added by jtroynousky, 10 months ago)
  • src/js/_enqueues/vendor/imgareaselect/jquery.imgareaselect.js

     
    11091109    /* Do the dreaded browser detection */
    11101110    var msie = (/msie ([\w.]+)/i.exec(ua)||[])[1],
    11111111        opera = /opera/i.test(ua),
    1112         safari = /webkit/i.test(ua) && !/chrome/i.test(ua);
     1112        webkit = /webkit/i.test(ua);
    11131113
    11141114    /*
    11151115     * Traverse the image's parent elements (up to <body>) and find the
     
    11391139    /*
    11401140     * In MSIE and WebKit, we need to use the keydown event instead of keypress
    11411141     */
    1142     $.imgAreaSelect.keyPress = msie || safari ? 'keydown' : 'keypress';
     1142    $.imgAreaSelect.keyPress = msie || webkit ? 'keydown' : 'keypress';
    11431143
    11441144    /*
    11451145     * There is a bug affecting the CSS cursor property in Opera (observed in