Skip to content

Commit

Permalink
Don't capture cmd+click (drag menu bar icon)
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
hmarr committed Mar 24, 2021
1 parent 7300bf0 commit 845a31d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Vitals/StatusBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ class StatusBarController {
// Never capture right clicks as we always want the menu behaviour to work
return event
} else {
// Cmd + click should begin dragging the menu bar icon
if event.modifierFlags.contains(.command) {
return event
}

// For left clicks, toggle the popover and capture clicks so we don't show the menu
self.togglePopover(sender: self)
return nil
Expand Down

0 comments on commit 845a31d

Please sign in to comment.