From bca38e24730f663be0d323401a7904400c179189 Mon Sep 17 00:00:00 2001 From: sunheyi <1061867552@qq.com> Date: Sat, 5 Nov 2022 09:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E5=BF=AB=E6=8D=B7?= =?UTF-8?q?=E9=94=AE=E7=9B=B8=E5=85=B3js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/assets/zhheo/blogex.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index eb47bb48..295ffcbd 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -593,9 +593,9 @@ $(window).on('keydown', function (ev) { if (heo_keyboard && ev.shiftKey && !heo_intype) { // 显示快捷键面板 shift键 - if (ev.keyCode == 16) { - document.querySelector("#keyboard-tips").classList.add("show"); - } + // if (ev.keyCode == 16) { + // document.querySelector("#keyboard-tips").classList.add("show"); + // } //关闭快捷键 shift+K if (ev.keyCode == 75) { @@ -661,12 +661,12 @@ $(window).on('keydown', function (ev) { }); -$(window).on('keyup', function (ev) { - // 显示快捷键面板 - if (ev.keyCode == 16) { - document.querySelector("#keyboard-tips").classList.remove("show"); - } -}); +// $(window).on('keyup', function (ev) { +// // 显示快捷键面板 +// if (ev.keyCode == 16) { +// document.querySelector("#keyboard-tips").classList.remove("show"); +// } +// }); //输入状态检测 $("input").focus(function () { @@ -746,9 +746,9 @@ if (getCookie('browsertc') != 1) { } //当前窗口得到焦点  -window.onfocus = function () { - document.querySelector("#keyboard-tips").classList.remove("show"); -}; +// window.onfocus = function () { +// document.querySelector("#keyboard-tips").classList.remove("show"); +// }; //注入函数 document.addEventListener('pjax:send', function () {