Open
Conversation
Mirrors macOS NSCursor.setHiddenUntilMouseMoves(true) behavior: the Clicky cursor now hides on any keypress and reappears on mouse move. - GlobalPushToTalkShortcutMonitor: publishes isUserTyping = true on any non-PTT keyDown event (CGEvent tap already received these; now acts on them) - CompanionManager: forwards isUserTyping via Combine; exposes resetUserTyping() - OverlayWindow: shouldHideForTyping gates triangle opacity during idle state; 16ms cursor timer calls resetUserTyping() when mouse moves >1pt PTT shortcut (ctrl+option) uses .flagsChanged not .keyDown — unaffected. Voice interaction states (.listening/.processing/.responding) are never hidden. Fixes farzaa#37 Co-Authored-By: Claude Sonnet 4.6 <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.
Feature
Hide Clicky cursor when user types, matching macOS native behavior (resolves #37)
Problem
When macOS hides the system cursor on keypress (
NSCursor.setHiddenUntilMouseMoves(true)), the Clicky blue cursor companion kept rendering at full opacity — floating mid-screen while the system cursor was invisible. Every user who types sees this visual mismatch.Root Cause
No typing-detection existed anywhere in the codebase. The
CGEventtap inGlobalPushToTalkShortcutMonitoralready received every.keyDownevent system-wide (it was already in the event mask), but silently dropped all non-PTT keystrokes.Solution
Extend the existing event tap — no new taps, no new permissions needed.
GlobalPushToTalkShortcutMonitor.swift@Published var isUserTyping: BoolhandleGlobalEventTap: setisUserTyping = truewheneventType == .keyDown && shortcutTransition == .none(PTT combo uses.flagsChanged, never hits this path)CompanionManager.swiftisUserTypingvia Combine subscriptionresetUserTyping()for BlueCursorView to call on mouse moveOverlayWindow.swiftshouldHideForTypingcomputed property:isUserTyping && voiceState == .idle&& !shouldHideForTypingaddedresetUserTyping()— mirrors the "until mouse moves" part ofsetHiddenUntilMouseMovesBehavior
Testing
Closes #37