From bb292ec9ade3ed323108ff805b4a6c53115122ba Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Sun, 26 May 2024 17:30:41 -0700 Subject: Hold option when double clicking server in Servers window to open window for that server without autoconnecting. Found a better way to check for currently pressed key modifiers. --- Hotline/macOS/HotlinePanelView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Hotline/macOS/HotlinePanelView.swift') diff --git a/Hotline/macOS/HotlinePanelView.swift b/Hotline/macOS/HotlinePanelView.swift index 9915e49..374e379 100644 --- a/Hotline/macOS/HotlinePanelView.swift +++ b/Hotline/macOS/HotlinePanelView.swift @@ -16,8 +16,7 @@ struct HotlinePanelView: View { HStack(spacing: 16) { Button { - if let event = NSApp.currentEvent, - event.modifierFlags.contains(.option) { + if NSEvent.modifierFlags.contains(.option) { openWindow(id: "server") } else { -- cgit