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() {
|
@objc func statusItemOnClick() {
|
||||||
if NSApp.currentEvent!.type == .leftMouseDown {
|
// NSApp.currentEvent == nil if the icon is "clicked" through VoiceOver
|
||||||
statusItem.popUpMenu(App.app.menubar.menu)
|
if let type = NSApp.currentEvent?.type, type != .leftMouseDown {
|
||||||
} else {
|
|
||||||
App.app.showUi()
|
App.app.showUi()
|
||||||
|
} else {
|
||||||
|
statusItem.popUpMenu(App.app.menubar.menu)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user