* [bug #54867, done, 0.2h] disable prev next hotkey in detail on editing or with visible modal.

This commit is contained in:
sunhao
2024-09-05 14:45:07 +08:00
committed by 刘刚
parent ad2cdd74e1
commit d04ee15cac
+3
View File
@@ -551,6 +551,9 @@ CSS;
'const binddedKey = "zt.detail.bindded"',
'if($doc.data(binddedKey)) return',
'$doc.on("keyup.detail.zt", e => {',
'if($(".modal.show").length) return',
'const $target = $(e.target);',
'if($target.is("input,textarea,select,[contenteditable]")) return',
'let $btn = null',
'if(e.keyCode === 37) $btn = $(".detail-prev-btn")',
'else if(e.keyCode === 39) $btn = $(".detail-next-btn")',