Repository navigation
Conversation
…anvas keys
- Global hotkeys: the main one (show the canvas / switch mode, Alt+`)
plus two optional ones without a key by default — drawing ⇄
click-through, and show / hide the canvas. hotkey.rs keeps a slot per
action; one combination belongs to one action ("used"), a combination
another program holds keeps the old one ("taken"), and one saved but
not registered at launch is shown in orange
- The hold key is a setting too (Alt, Ctrl, Shift, ⌘ on macOS, or off);
keys::Tap becomes keys::Modifier, shared by hold and tap
- Settings → Keys: global hotkeys, hold and double tap, canvas keys, with
the same click-and-press recording (key-recorder.js). Combos convert to
Tauri accelerators in core (toAccelerator, tested): a global hotkey
takes its combination away from canvas keys, and a canvas key cannot
get a global hotkey's combination. Reset all covers everything
- Labels wrap instead of being cut off; the panel is a little wider
- Saved in settings.json: hotkeyMode, hotkeyHide, holdKey; broken values
fall back to defaults
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resizing the window re-ran the whole step, restarting the card's animation and taking focus; it now only moves the cut-out and the card. isTourActive was never used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Replaces #10, which GitHub closed when its base branch (
onboarding, #9) was merged and deleted. Same commits, plus a small fix for the tour on resize.What
Settings → Keys — one section for every key, all saved in
settings.json.Global hotkeys (work in any app):
Alt+``(as before)used.taken).Hold and double tap. The hold key (mouse to the windows below) is now a setting, like the double-tap key: Alt, Ctrl, Shift, ⌘ (macOS) or off. Both are hidden on Linux, where there is no key polling.
Canvas keys. Same as before, now with the shared recorder:
Reset all restores canvas keys, global hotkeys, the hold key and the tap key.
The cheat sheet and the tour show the chosen hold key and any optional global hotkeys that are set.
How
hotkey.rs—Action(show, mode, hide) with a slot per action andset/init.overlay.rs—toggle_mode,toggle_visible.keys::Tap→keys::Modifier;poll(hold, tap).set_global_hotkey,set_hold_key;get_settingsreturnsglobals.key-recorder.js(shared record button and note).globals-settings.js(global hotkeys and modifiers).keys-settings.js(canvas keys).core/keymap.js:toAccelerator, with tests.settings.hotkeylabel is removed.Checked
npm run check,npm test(17),cargo fmt --check,cargo clippy --all-targets -D warnings,cargo test(17) — clean.npm startlaunches the app.used,takenand no-modifier refusals;Ctrl+Shift+Cfrom a canvas key, and a canvas key refused a global combination;settings.json, so please try the three global hotkeys on a built version.🤖 Generated with Claude Code