* [bug #54867, done, 0.2h] disable prev next hotkey in detail on editing or with visible modal.
This commit is contained in:
@@ -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")',
|
||||
|
||||
Reference in New Issue
Block a user