fix(打印能力): 修复后台打印状态串扰
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-10-25 13:39:56 +08:00
1 parent 75995cd8dc
commit 299229c584
2 files changed
+7 -10

No files matched your search

+1 -1
View File
@@ -1893,7 +1893,7 @@ function handleKeyDown(event) {
}
if (nativeHost && (event.ctrlKey || event.metaKey) && (key === "Tab" || key.toLowerCase() === "w")) {
event.preventDefault();
if (document.body.hasAttribute("data-busy") || formDialogOpen() && !documentTab().print?.context) return;
if (document.body.hasAttribute("data-busy") || documentDialogs?.applicationOpen() || formDialogOpen() && !documentTab().print?.context) return;
if (key.toLowerCase() === "w") closeTab(documentTab());
else {
const count = workspace.tabs.length, index = workspace.tabs.indexOf(documentTab());