Merge branch 'worktree-agent-ac8ee7a1fc97e24ae' into claude/practical-noether-1hb2s1

This commit is contained in:
Claude committed 2026-11-14 01:33:09 +00:00
commit 891649abc1
12 files changed
+169 -34

No files matched your search

+12 -3
View File
@@ -32,12 +32,12 @@ import {
} from "../editors/elementClipboard";
import type { ElementClipboard, ElementSelectionIds, PastedIds } from "../editors/elementClipboard";
import { parseClipboardText, serializeClipboardText } from "../editors/elementClipboardSerialize";
import { matchesShortcut, type ShortcutId, type ShortcutOverrides } from "./keyboardShortcuts";
import { matchesShortcut, tabKeyAction, type ShortcutId, type ShortcutOverrides } from "./keyboardShortcuts";
import { isolateSelectionLayerCodes, showAllLayerCodes } from "./layerIsolate";
import { isInModalDialog } from "./modalScope";
import { toggleTraceAction } from "./traceActions";
import { joinCurrentSelection } from "./selectionJoin";
import { hideSelectionIn3d, showSelectionIn3d, stepActiveFloor } from "./tabNavigation";
import { cycleViewTab, hideSelectionIn3d, showSelectionIn3d, stepActiveFloor } from "./tabNavigation";
const isEditableTarget = (e: KeyboardEvent): boolean => {
const el = e.target as HTMLElement | null;
@@ -121,7 +121,16 @@ export function useCommandTabShortcut(
commandLineRef.current?.beginTyping(e.key);
return;
}
if (e.key !== "Tab") return;
const tabAction = tabKeyAction(e);
if (!tabAction) return;
// Overlay-Dialoge nutzen Tab für ihre eigenen Felder.
if ((e.target as HTMLElement | null)?.closest?.('[role="dialog"], [aria-modal="true"]')) return;
if (tabAction !== "commandLine") {
// [252] Ctrl+Tab / Ctrl+Umschalt+Tab: Ansichts-Reiter, zyklisch (auch aus Eingabefeldern).
e.preventDefault();
cycleViewTab(tabAction === "nextViewTab" ? 1 : -1);
return;
}
if (inInput) {
return;
}