Skip to content

nightshift(adr): document NSEvent local monitor, use-count sorting#4

Open
perandre wants to merge 1 commit intomainfrom
nightshift/adr-0008-0009
Open

nightshift(adr): document NSEvent local monitor, use-count sorting#4
perandre wants to merge 1 commit intomainfrom
nightshift/adr-0008-0009

Conversation

@perandre
Copy link
Copy Markdown
Owner

Summary

  • ADR 0008 documents the decision to use NSEvent.addLocalMonitorForEvents for all keyboard handling, since SwiftUI's .onSubmit and .onKeyPress do not work reliably in non-activating NSPanel windows.
  • ADR 0009 documents the decision to sort snippets by useCount descending, so the most-copied snippets float to the top automatically.

Both decisions are visible in the existing code but were not yet recorded as ADRs.

Night Shift

Automated by the document-decisions task.

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