WordPress.org

Make WordPress Core

Ticket #20885: 20885.2.patch

File 20885.2.patch, 1.0 KB (added by SergeyBiryukov, 6 years ago)
  • wp-includes/js/jquery/jquery.hotkeys.dev.js

     
    7373                propagate = true, // default behaivour
    7474                mapPoint = null;
    7575           
    76             // in opera + safari, the event.target is unpredictable.
    77             // for example: 'keydown' might be associated with HtmlBodyElement
    78             // or the element where you last clicked with your mouse.
    79             if (jQuery.browser.opera || jQuery.browser.safari){
    80                 while (!that.all[element] && element.parentNode){
    81                     element = element.parentNode;
    82                 }
     76            while (!that.all[element] && element.parentNode){
     77                element = element.parentNode;
    8378            }
    8479            var cbMap = that.all[element].events[type].callbackMap;
    8580            if(!shift && !ctrl && !alt && !meta) { // No Modifiers