fix: alttab would crash after menubar icon was actioned with voiceover
closes #3211
This commit is contained in:
1 parent
b8833b74eb
commit
f7fdf3f987
1 file changed
+4
-3
@@ -49,10 +49,11 @@ class Menubar {
|
||||
}
|
||||
|
||||
@objc func statusItemOnClick() {
|
||||
if NSApp.currentEvent!.type == .leftMouseDown {
|
||||
statusItem.popUpMenu(App.app.menubar.menu)
|
||||
} else {
|
||||
// NSApp.currentEvent == nil if the icon is "clicked" through VoiceOver
|
||||
if let type = NSApp.currentEvent?.type, type != .leftMouseDown {
|
||||
App.app.showUi()
|
||||
} else {
|
||||
statusItem.popUpMenu(App.app.menubar.menu)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user