Make WordPress Core

Ticket #46474: #46474.patch

File #46474.patch, 606 bytes (added by rehanali, 20 months ago)

Added patch

  • touch-keyboard-navigation.js

     
    274274
    275275                document.addEventListener('focus', function(event) {
    276276
    277                         if ( event.target.matches('.main-navigation > div > ul > li a') ) {
     277                        if ( event.target != window.document && event.target.matches('.main-navigation > div > ul > li a') ) {
    278278
    279279                                // Remove Focused elements in sibling div.
    280280                                var currentDiv        = getCurrentParent( event.target, 'div', '.main-navigation' );