Skip to content

Commit

Permalink
Update CarbonKeyboardShortcuts.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Jul 11, 2023
1 parent 00622a4 commit 58c6aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KeyboardShortcuts/CarbonKeyboardShortcuts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ enum CarbonKeyboardShortcuts {
EventTypeSpec(eventClass: OSType(kEventClassKeyboard), eventKind: UInt32(kEventRawKeyUp))
]

private static let keyEventMonitor = RunLoopLocalEventMonitor(runLoopMode: RunLoop.Mode.eventTracking, events: [.keyDown, .keyUp]) { event in
private static let keyEventMonitor = RunLoopLocalEventMonitor(events: [.keyDown, .keyUp], runLoopMode: .eventTracking) { event in
guard
let eventRef = OpaquePointer(event.eventRef),
handleRawKeyEvent(eventRef) == noErr
Expand Down

0 comments on commit 58c6aff

Please sign in to comment.