function document.onkeyup()        //按Esc键关闭,切换焦点关闭
  {
    if (window.event.keyCode==27){
        if(outObject)outObject.blur();
        closeLayer();
    }
    else if(document.activeElement)
        if(document.activeElement != outObject && document.activeElement != outButton)
        {
            closeLayer();
        }
  }

 

相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2021-11-24
  • 2021-08-09
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案