| | |
| | | static let tagLauncherQuickSearchDismissRequested = Notification.Name("TagLauncherQuickSearchDismissRequested") |
| | | static let tagLauncherQuickSearchVisibilityChanged = Notification.Name("TagLauncherQuickSearchVisibilityChanged") |
| | | static let tagLauncherHotkeyRegistrationChanged = Notification.Name("TagLauncherHotkeyRegistrationChanged") |
| | | static let tagLauncherProEntitlementChanged = Notification.Name("TagLauncherProEntitlementChanged") |
| | | } |
| | | |
| | | enum QuickSearchOpenSource { |
| | |
| | | } |
| | | return "Key \(keyCode)" |
| | | } |
| | | } |
| | | |
| | | static var printableKeyCodes: Set<Int> { |
| | | Set(keyCodeToPrintableScalar.keys) |
| | | } |
| | | |
| | | private static let keyCodeToPrintableScalar: [Int: Character] = [ |
| | |
| | | enum QuickSearchEngine { |
| | | static func makeDocuments(apps: [AppInfo], store: TagDatabase.Store) -> [QuickSearchDocument] { |
| | | apps |
| | | .filter { !AppIndexer.isNestedInsideAppBundle($0.path) } |
| | | .filter { !AppIndexer.isInternalHelperAppPath($0.path) } |
| | | .map { app in |
| | | let localizedNames = uniqueOrdered(AppDisplayNameResolver.searchAliases(for: app)) |
| | | let internalBundleNames = internalBundleNames(for: app) |
| | |
| | | trackingAreaRef = area |
| | | } |
| | | |
| | | override func hitTest(_ point: NSPoint) -> NSView? { |
| | | guard !isHidden, alphaValue > 0, bounds.contains(point) else { return nil } |
| | | return self |
| | | } |
| | | |
| | | override func acceptsFirstMouse(for event: NSEvent?) -> Bool { |
| | | true |
| | | } |
| | | |
| | | override func mouseEntered(with event: NSEvent) { |
| | | super.mouseEntered(with: event) |
| | | if let result { |