Skip to content

Commit

Permalink
Update KeyboardShortcuts.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 9, 2023
1 parent d3e78e9 commit 8043e68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/KeyboardShortcuts/KeyboardShortcuts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public enum KeyboardShortcuts {
openMenuObserver = NotificationCenter.default.addObserver(forName: NSMenu.didBeginTrackingNotification, object: nil, queue: nil) { _ in
isMenuOpen = true
}

closeMenuObserver = NotificationCenter.default.addObserver(forName: NSMenu.didEndTrackingNotification, object: nil, queue: nil) { _ in
isMenuOpen = false
}
Expand Down

0 comments on commit 8043e68

Please sign in to comment.