feat: Add toggle to show/hide mouse actions in key overlay#466
Open
mynameistito wants to merge 1 commit intomulaRahul:mainfrom
Open
feat: Add toggle to show/hide mouse actions in key overlay#466mynameistito wants to merge 1 commit intomulaRahul:mainfrom
mynameistito wants to merge 1 commit intomulaRahul:mainfrom
Conversation
Add `showMouseActions` setting to MouseSettings that controls whether clicks, drags, and scrolls appear as events in the key overlay. - Add `showMouseActions` field to MouseSettings interface (default: true) - Guard onMouseButtonPress, onMouseButtonRelease, drag simulation, and onMouseWheel behind the setting check - Add "Show Mouse Actions" toggle in Settings > Mouse > Event section
2 tasks
5bdf691 to
dda8f44
Compare
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
Fixes: #465
Right now there's no way to turn off mouse actions (clicks, drags, scrolls) appearing in the key overlay. Useful if you're recording and don't want the noise, or just prefer keyboard-only output.
This adds a "Show Mouse Actions" toggle in Settings > Mouse > Event. It defaults to on, so nothing changes for existing users.
What changed
key_style.ts- addedshowMouseActions: booleanto theMouseSettingsinterface, defaulttruekey_event.ts- importeduseKeyStyleand wrappedonMouseButtonPress,onMouseButtonRelease, drag simulation inonMouseMove, andonMouseWheelbehind the setting checksrc/components/settings/mouse.tsx- added the toggle UI in the Event section, reusing the already-importedMouseLeftClick05IconNote
All code changes in this PR were written by Claude, an AI agent. I reviewed the diff and verified the approach fits the existing patterns in the codebase before submitting.