mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
9f43a3b71c
Move window-level keyboard shortcuts from 3 separate files into a single `handleAppKeyDown` in App.tsx: - Shift+T: toggle timeline (was App.tsx, separate useMountEffect) - Cmd+1/2: sidebar tab switch (was LeftSidebar.tsx) - Delete/Backspace: remove selected element (was Timeline.tsx) LeftSidebar now exposes a ref handle for tab switching. Timeline watches for selectedElement becoming null to clean up UI state (popover, range). Playback shortcuts (Space, J/K/L, arrows) and caption nudge remain in their component hooks — they're tightly coupled to component state. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>