feat: add command palette functionality and shortcuts
- Implemented command palette with keyboard shortcut (⌘K) for opening. - Added commands for opening, closing, setting query, and selecting items in the command palette. - Created tests for command palette commands and input handling. - Enhanced layer actions with functions for adding, grouping, and deleting layers. - Updated UI components to integrate command palette and shortcuts.
This commit is contained in:
@@ -18,6 +18,7 @@ const shortcuts: Shortcut[] = [
|
||||
{ keys: ["P"], label: "Pan" },
|
||||
{ keys: ["Space"], label: "Hold to pan" },
|
||||
{ keys: ["L"], label: "Layers" },
|
||||
{ keys: ["⌘", "K"], label: "Commands" },
|
||||
{ keys: ["⌘", "O"], label: "Open image" },
|
||||
{ keys: ["⌘", "Z"], label: "Undo" },
|
||||
{ keys: ["⇧", "⌘", "Z"], label: "Redo" },
|
||||
|
||||
Reference in New Issue
Block a user