From 66e776774a281533b112e08481f1c8432c36d4fc Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Tue, 3 Feb 2026 16:06:33 -0800 Subject: [PATCH] feat: add default keybindings for toggle mode and assets panel (#8593) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Add default keyboard shortcuts for mode toggle and assets panel access. ## Changes - **Ctrl+Shift+A**: Toggle between Simple Mode and Graph Mode (`Comfy.ToggleLinear`) - **A**: Open/toggle assets panel (`Workspace.ToggleSidebarTab.assets`) - Show keybinding in ModeToggle button tooltip (e.g. "Simple Mode (Ctrl+Shift+A)") ## Keybinding Rationale - `A` follows the existing pattern: `w` (workflows), `n` (node-lib), `m` (model-lib) - `Ctrl+Shift+A` chosen because: - Ctrl+Shift is the standard modifier pattern for toggle commands - "A" mnemonic for "App mode" - Does not conflict with existing keybindings ## Testing - Verified typecheck passes - Verified lint passes ## Summary by CodeRabbit * **New Features** * Tooltips now show dynamic keyboard shortcut suffixes for mode and tab controls. * Added keyboard shortcut: A — toggles the assets sidebar. * Added keyboard shortcut: Ctrl+Shift+A — toggles linear mode. * **Localization** * Added a localized shortcut suffix template so displayed shortcuts respect translations. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8593-feat-add-default-keybindings-for-toggle-mode-and-assets-panel-2fc6d73d36508172bd6ed3378f43de55) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action --- src/components/sidebar/ModeToggle.vue | 16 ++++++++++++++-- src/components/sidebar/SideToolbar.vue | 9 +++++---- src/locales/en/main.json | 1 + src/platform/keybindings/defaults.ts | 14 ++++++++++++++ 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/src/components/sidebar/ModeToggle.vue b/src/components/sidebar/ModeToggle.vue index a9cd6f080..b962bac47 100644 --- a/src/components/sidebar/ModeToggle.vue +++ b/src/components/sidebar/ModeToggle.vue @@ -1,10 +1,22 @@