Add customizable shortcuts + slight settings ui improvement#3
Open
dodobird1 wants to merge 2 commits into
Open
Add customizable shortcuts + slight settings ui improvement#3dodobird1 wants to merge 2 commits into
dodobird1 wants to merge 2 commits into
Conversation
|
@dodobird1 is attempting to deploy a commit to the nine19een'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.
Summary
Adds a customizable keyboard shortcut system and improves settings UX. Recording controls can be bound by the user; nothing new is forced by default beyond existing editor shortcuts.
Keyboard shortcuts
New src/shortcuts.ts module: default bindings, persistence (localStorage), parsing/matching, and hint formatting.
Editable shortcuts for tools, edit actions (undo/redo, copy/paste, duplicate, delete), zoom, palette colors (1–9), and recording.
Recording shortcuts are available in settings but unbound by default (open settings, teleprompter, enter/cancel prep, start/pause/resume/stop). Slide prev/next during recording still default to ←/→.
Shortcuts are configurable under 设置 → 快捷键, with reset to defaults.
UI
Settings panel uses tabs (画布 / 背景 / 摄像头 / 光标 / 快捷键) instead of one long scroll.
Shortcut labels and groups are in Chinese, consistent with the rest of the app.
Key hints on the top toolbar, floating recording controls, properties panel (duplicate/delete), and color palette (1–9) when a binding exists.
Escape key
Escape dismisses overlays in priority order: settings → clear-board confirm → teleprompter → image crop → recording prep → text edit → clear selection → switch back to select tool.