feat: add Fn hotkey monitor and probe CLI
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user