feat(web): Outliner keyboard map runs the desktop navigation, hide and keyframe operators

- Shift+Left/Right follow outliner.select_walk direction semantics: the
  keyboard passes the open state explicitly (outliner_walk_left/right)
  instead of reusing the mouse-chevron state guess.
- PageUp/PageDown run OUTLINER_OT_scroll_page; H/Alt+H run
  OUTLINER_OT_hide/unhide_all through a new OUTLINER_RESTRICT_OPERATION.
- K/I/Alt+I drive the native keying-set and keyframe operators; the case
  walks the desktop Data API route (select an RNA row, K builds the set,
  the inserted action appears under Actions) instead of relying on the
  auto-keying fallback that Alt+I cannot delete through.
- Cases [outliner-keyboard-parity-web] and [outliner-keyframe-keys-web].

Headed suite 48/48, validator PASS, treeview candidate 2/2, armature
dev-server 5/6 (pre-existing failure, unchanged).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-12-02 09:38:14 +08:00
parent dcfcd313d2
commit 801145ae29
12 changed files with 361 additions and 34 deletions

View File

@@ -457,7 +457,7 @@ export type EditorContextEdit = { workspaceId: string; screenId: string } & (
| ({ action: 'VIEW3D_NAVIGATE'; areaId: string; regionId: string } & NativeView3DNavigation)
| ({ action: 'VIEW3D_SELECT'; areaId: string; regionId: string } & NativeView3DSelection)
| { action: 'OUTLINER_REFRESH'; areaId: string }
| { action: 'OUTLINER_TOGGLE_EXPAND'; areaId: string; rowId: string; toggleAll: boolean }
| { action: 'OUTLINER_TOGGLE_EXPAND'; areaId: string; rowId: string; toggleAll: boolean; open?: boolean }
| { action: 'OUTLINER_TREE_SELECT'; areaId: string; rowId: string; extend: boolean; range: boolean; activateData?: boolean; activateProperties?: boolean; recursive?: boolean; ensureSelected?: boolean }
| { action: 'OUTLINER_REMAP'; areaId: string; rowId: string; oldId: string; newId: string }
| { action: 'OUTLINER_SELECT'; areaId: string; objectId: string; extend: boolean; range: boolean }
@@ -474,6 +474,8 @@ export type EditorContextEdit = { workspaceId: string; screenId: string } & (
| { action: 'OUTLINER_SET_FILTER'; areaId: string; filter: NativeOutlinerFilter }
| { action: 'OUTLINER_SET_SYNC_SELECT'; areaId: string; sync: boolean }
| { action: 'OUTLINER_VIEW_OPERATION'; areaId: string; operation: 'EXPANDED_TOGGLE' | 'SHOW_HIERARCHY' | 'SHOW_ONE_LEVEL' | 'HIDE_ONE_LEVEL' | 'SHOW_ACTIVE' }
| { action: 'OUTLINER_SCROLL_PAGE'; areaId: string; up: boolean }
| { action: 'OUTLINER_RESTRICT_OPERATION'; areaId: string; operation: 'HIDE' | 'UNHIDE_ALL' }
| { action: 'OUTLINER_EDIT_OPERATION'; areaId: string; operation: 'KEYINGSET_ADD' | 'KEYINGSET_REMOVE' | 'DRIVERS_ADD' | 'DRIVERS_DELETE' | 'KEYFRAME_INSERT' | 'KEYFRAME_DELETE' }
| { action: 'OUTLINER_SET_LIB_OVERRIDE_VIEW_MODE'; areaId: string; mode: 'PROPERTIES' | 'HIERARCHIES' }
| { action: 'OUTLINER_SET_ID_TYPE_FILTER'; areaId: string; use: boolean; idType: string }