feat: Add comprehensive keyboard shortcuts and VS Code-style Command Palette System#61
Merged
bchou9 merged 2 commits intoResilientApp:mainfrom Oct 30, 2025
Conversation
…palette - Implement KeyboardShortcutManager for shortcut registration and handling - Add CommandRegistry singleton for centralized command management - Create CommandPalette component with fuzzy search and keyboard navigation - Add KeyboardShortcutsHelp dialog with categorized shortcuts display - Configure 40+ default shortcuts across 6 categories (Tools, Edit, Canvas, etc.) - Integrate keyboard shortcuts into Canvas component - Add comprehensive unit tests (55+ test cases) - Update documentation Features: VS Code-style command palette (Ctrl+K) Keyboard shortcuts help dialog (Ctrl+/) Platform-specific key display ( for Mac, Ctrl for Windows) Smart input field detection Recent commands tracking Fuzzy search with keyword matching Single-key tool shortcuts (P, E, R, C, L, A) Undo/Redo shortcuts (Ctrl+Z, Ctrl+Shift+Z) Closes #[45]
|
@saksham-1304 is attempting to deploy a commit to the ResilientDB's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Overview
This PR introduces a comprehensive keyboard shortcuts system and VS Code-style command palette to ResCanvas, enabling power users to work efficiently without mouse/toolbar interactions.
✨ Features Added
Core System
User Experience
📁 Files Changed
New Files (9)
frontend/src/services/KeyboardShortcuts.js(297 lines) - Core shortcut managerfrontend/src/services/CommandRegistry.js(297 lines) - Command registryfrontend/src/config/shortcuts.js(452 lines) - Default shortcuts configfrontend/src/components/CommandPalette.jsx(403 lines) - Command palette UIfrontend/src/components/KeyboardShortcutsHelp.jsx(277 lines) - Help dialogfrontend/src/styles/KeyboardShortcuts.css(183 lines) - Component stylesfrontend/src/services/__tests__/KeyboardShortcuts.test.js(442 lines) - Unit testsfrontend/src/services/__tests__/CommandRegistry.test.js(422 lines) - Unit testsKEYBOARD_SHORTCUTS.md(393 lines) - Complete documentationModified Files (1)
frontend/src/components/Canvas.js- Integrated keyboard shortcuts (256 lines added)🧪 Testing
Unit Tests
Manual Testing
📚 Documentation
KEYBOARD_SHORTCUTS.md⚡ Performance
♿ Accessibility
🔄 Breaking Changes
None - All changes are additive and backward compatible
📋 Checklist
🔗 Related Issues
Closes #45
Note: This PR adds a complete keyboard shortcuts system inspired by VS Code, significantly improving power user productivity and accessibility.