Skip to content

Commit

Permalink
Update StaplerApp.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerbeardman committed Aug 22, 2024
1 parent 6638cba commit feaa002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stapler/StaplerApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ struct StaplerApp: App {
let currentEvent = NSApplication.shared.currentEvent
let isOpenedFromFinder = currentEvent != nil && currentEvent?.type == .appKitDefined && currentEvent?.subtype.rawValue == NSEvent.EventSubtype.applicationActivated.rawValue

if isOpenedFromFinder && !appStateManager.wasJustLaunched {
if isOpenedFromFinder {
// Delay the check for Command key to allow it to be released
DispatchQueue.main.asyncAfter(deadline: .now() + commandKeyDelay) {
let commandKeyPressed = NSEvent.modifierFlags.contains(.command)
Expand Down

0 comments on commit feaa002

Please sign in to comment.