apis/nucleus/dist/nucleus.dev.js
/**
   * Should be called if a blur event is fired on a focus-visible element
   */
Should be called if a blur event is fired on a focus-visible element
Should be called if a blur event is fired on a focus - visible element
function handleBlurVisible() {
    hadFocusVisibleRecently = true;
    window.clearTimeout(hadFocusVisibleRecentlyTimeout);
    hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
      hadFocusVisibleRecently = false;
    }, 100);
  }
function handleBlurVisible ( ) { hadFocusVisibleRecently = true ; window . clearTimeout ( hadFocusVisibleRecentlyTimeout ) ; hadFocusVisibleRecentlyTimeout = window . setTimeout ( function ( ) { hadFocusVisibleRecently = false ; } , 100 ) ; }
Should be called if a blur event is fired on a focus-visible element
Should be called if a blur event is fired on a focus - visible element
// To detect a tab/window switch, we look for a blur event followed // rapidly by a visibility change. // If we don't see a visibility change within 100ms, it's probably a // regular focus change.