Repository navigation
Conversation
Accept mouse input on the keyboard overlay while groups are visible and store the dropped position as the custom placement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hey there, @agilek! Thanks for the PR! When I was doing this app I made conscious decision to anchor visualizer statically and not allow users to move it dynamically. While I'm not entirely against this feature and I'm generally in favour for customization - I want this feature to be behind customizable flag. And since default experience for the app is static position this flag should be off by default - at least for now. I guess a little bit tricky question where this setting belongs in Settings window. Try to think it through where it belongs in settings window and I will try to use it in app as a whole experience. |
Thanks for your reply. Will think about it more. |
|
Just to clarify, I think this is a valuable addition to Keyty, and I appreciate the work you’ve already put into the implementation. I’d be happy to discuss where the toggle could fit in Settings if you’re interested in continuing with this feature! |
Summary
Lets you reposition the keyboard overlay by dragging it while it is visible, without opening Settings. The drop is stored as the existing custom placement, so it behaves the same as a position set from the Displays pane.
NSPanel, so that grabbing it doesn't take focus from the current app.Behavior change to consider: while groups are visible, the overlay's frame now catches clicks that used to pass through to the app underneath, including transparent gaps between groups. There is no setting to turn this off. I'm happy to put it behind a toggle if you prefer.
No change to event capture, permissions or stored setting keys.
Tests
tuist generatexcodebuild test -project Keyty.xcodeproj -scheme Keyty -destination 'platform=macOS'(353 tests, Xcode 26.3, macOS 15.7, signed with my own team)New tests in
KeyboardVisualizerWindowDragTests: click-through state, drag and stored placement, click without movement, and fade hold and release. They call the drag methods directly, so real pointer input, multi-display dragging and the Displays pane sync are not covered by automated tests.UI Changes
N/A. No new controls or visual changes; the existing overlay can now be dragged.
Documentation
Release Notes
Keyboard visualizer: drag the visible overlay to move it anywhere on screen.
🤖 Generated with Claude Code