feat: add Fn hotkey monitor and probe CLI

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 09:44:23 +02:00
co-authored by Claude Sonnet 5.5
parent 7d24f3e874
commit 1c581e8eae
6 changed files with 118 additions and 0 deletions
@@ -0,0 +1,13 @@
import Testing
@testable import SstCore
struct FnKeyTrackerTests {
@Test func emitsPressedThenReleasedOnlyOnTransitions() {
var tracker = FnKeyTracker()
#expect(tracker.process(fnDown: false) == nil)
#expect(tracker.process(fnDown: true) == .pressed)
#expect(tracker.process(fnDown: true) == nil)
#expect(tracker.process(fnDown: false) == .released)
#expect(tracker.process(fnDown: false) == nil)
}
}