This commit is contained in:
Vanessa 2022-09-16 21:43:22 +08:00
parent 1994998530
commit 2e68c770a5

View file

@ -563,7 +563,7 @@ export const globalShortcut = () => {
}
// close tab
if (matchHotKey(window.siyuan.config.keymap.general.closeTab.custom, event)) {
if (matchHotKey(window.siyuan.config.keymap.general.closeTab.custom, event) && !event.repeat) {
event.preventDefault();
event.stopPropagation();
let activeTabElement = document.querySelector(".block__icons--active");