forked from 1b-agent/opencadstudio-upstream
feat: Keyboard Shortcuts panel + SHORTCUTS command
Opens a reference panel listing all built-in keyboard shortcuts (F3-F12, Ctrl+N/O/S/Z/C/X/V, etc.) and any user-defined overrides. SHORTCUTS LIST — open the panel SHORTCUTS SET <k> <c> — add/update a custom shortcut label SHORTCUTS CLEAR <k> — remove a custom entry Custom shortcuts are stored in app state (runtime only) and shown in the panel alongside the hardcoded bindings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
e36fafe6df
commit
67b5f5e3d5
5 files changed
+218
-2
No files matched your search
@@ -2370,6 +2370,16 @@ impl H7CAD {
|
||||
Task::none()
|
||||
}
|
||||
|
||||
// ── Keyboard Shortcuts Panel ──────────────────────────────────────
|
||||
Message::ShortcutsPanelOpen => {
|
||||
self.shortcuts_panel_open = true;
|
||||
Task::none()
|
||||
}
|
||||
Message::ShortcutsPanelClose => {
|
||||
self.shortcuts_panel_open = false;
|
||||
Task::none()
|
||||
}
|
||||
|
||||
Message::ViewportContextMenuClose => {
|
||||
let i = self.active_tab;
|
||||
self.tabs[i].scene.selection.borrow_mut().context_menu = None;
|
||||
|
||||
Reference in new issue
Block a user