fix(编辑能力): 修复输入状态下标签快捷键
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-29 15:01:52 +08:00
1 parent 5b4f2472f7
commit 838a769c5b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1952,7 +1952,7 @@ export class CanvasEditor {
} }
}); });
input.addEventListener("keydown", (event) => { input.addEventListener("keydown", (event) => {
if ((event.ctrlKey || event.metaKey) && !event.altKey && event.key.toLowerCase() === "s") return; if ((event.ctrlKey || event.metaKey) && !event.altKey && ["s", "w", "tab"].includes(event.key.toLowerCase())) return;
event.stopPropagation(); event.stopPropagation();
if (event.isComposing || editing.composing || editing.saving) { if (event.isComposing || editing.composing || editing.saving) {
return; return;
+1 -1
View File
@@ -183,7 +183,7 @@ export class FontPicker {
} }
keyDown(event) { keyDown(event) {
if (event.isComposing) return; if (event.isComposing || event.key === "Tab" && (event.ctrlKey || event.metaKey || event.altKey)) return;
if (!["Escape", "Enter", "ArrowDown", "ArrowUp", "Tab"].includes(event.key)) return; if (!["Escape", "Enter", "ArrowDown", "ArrowUp", "Tab"].includes(event.key)) return;
event.stopPropagation(); event.stopPropagation();
if (event.key === "Escape") { if (event.key === "Escape") {