diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-26 17:30:41 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-26 17:30:41 -0700 |
| commit | bb292ec9ade3ed323108ff805b4a6c53115122ba (patch) | |
| tree | d46ca0e40a9c1d9019c3c078e8fa8fe48b5f0d54 /Hotline/macOS/HotlinePanelView.swift | |
| parent | 63cc41b93eec7505c3a93a1537fb62ae9a723237 (diff) | |
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.
Diffstat (limited to 'Hotline/macOS/HotlinePanelView.swift')
| -rw-r--r-- | Hotline/macOS/HotlinePanelView.swift | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |