Skip to content

Add click-outside hide preference - #74

Merged
momenbasel merged 1 commit into
mainfrom
maintainer/pr-22-click-outside
Aug 12, 2026
Merged

Add click-outside hide preference#74
momenbasel merged 1 commit into
mainfrom
maintainer/pr-22-click-outside

Conversation

@momenbasel

Copy link
Copy Markdown
Owner

Reworked from #22. Co-authored with @alvst.

Made with Cursor

New Behavior toggle controls whether the bar hides when it loses key
focus. Defaults to on, preserving current behavior. When pinned, the
panel drops from .modalPanel to .floating so it stops covering
full-screen apps, and the paste target keeps tracking the frontmost
app via lastActiveApp.

Co-authored-by: alvst <alvst@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings August 12, 2026 06:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@momenbasel
momenbasel merged commit dab1765 into main Aug 12, 2026
1 check passed
@momenbasel
momenbasel deleted the maintainer/pr-22-click-outside branch August 12, 2026 06:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce50d53fd8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

var hideOnClickOutside: Bool {
didSet { guard isLoaded else { return }; d.set(hideOnClickOutside, forKey: Keys.hideOnClickOutside) }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Apply auto-hide immediately when it is enabled

When the preference is changed from off to on while the bar is already visible behind the Settings window, this setter only persists the value. The panel lost key status while the option was still off, so windowDidResignKey has already returned without hiding it; subsequent clicks in other apps produce no new resignation event, leaving the bar visible despite the enabled setting until the user focuses or toggles it again. Reconcile the currently presented panel when enabling this option.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants