Merge branch 'worktree-agent-acb10b8907cc6ed92' into claude/practical-noether-1hb2s1
# Conflicts: # TODO.md # src/i18n/de.ts # src/i18n/en.ts # src/state/keyboardShortcuts.ts # src/state/useSelectionCommands.ts
This commit is contained in:
12 files changed
+229
-24
No files matched your search
@@ -32,6 +32,7 @@ import {
|
||||
import type { ElementClipboard, ElementSelectionIds, PastedIds } from "../editors/elementClipboard";
|
||||
import { parseClipboardText, serializeClipboardText } from "../editors/elementClipboardSerialize";
|
||||
import { matchesShortcut, type ShortcutId, type ShortcutOverrides } from "./keyboardShortcuts";
|
||||
import { isolateSelectionLayerCodes, showAllLayerCodes } from "./layerIsolate";
|
||||
import { hideSelectionIn3d, showSelectionIn3d, stepActiveFloor } from "./tabNavigation";
|
||||
|
||||
const isEditableTarget = (e: KeyboardEvent): boolean => {
|
||||
@@ -665,7 +666,11 @@ export function useViewNavigationShortcuts(overrides: ShortcutOverrides): void {
|
||||
? showSelectionIn3d
|
||||
: matchesShortcut(e, "hideSelection3d", overrides)
|
||||
? hideSelectionIn3d
|
||||
: null;
|
||||
: matchesShortcut(e, "isolateLayer", overrides)
|
||||
? isolateSelectionLayerCodes
|
||||
: matchesShortcut(e, "showAllLayers", overrides)
|
||||
? showAllLayerCodes
|
||||
: null;
|
||||
if (!fn) return;
|
||||
e.preventDefault();
|
||||
fn();
|
||||
@@ -722,9 +727,7 @@ export function useSelectionActionShortcuts(
|
||||
? ref.current.toggleLock
|
||||
: matchesShortcut(e, "hideSelectionLayers", overrides)
|
||||
? ref.current.hideLayers
|
||||
: matchesShortcut(e, "showAllLayers", overrides)
|
||||
? ref.current.showAllLayers
|
||||
: null;
|
||||
: null; // „Alle Ebenen einblenden" ([192]) läuft über useViewNavigationShortcuts
|
||||
if (!fn) return;
|
||||
e.preventDefault();
|
||||
fn();
|
||||
|
||||
Reference in new issue
Block a user