mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Fix hotkey hiding on Windows
This commit is contained in:
parent
d5ea4c77ab
commit
388f2e1cc0
@ -157,7 +157,12 @@ function registerGlobalHotkey() {
|
||||
return
|
||||
}
|
||||
if (win.isFocused()) {
|
||||
app.hide()
|
||||
if (!!app.hide) {
|
||||
// app.hide() only available on macOS
|
||||
app?.hide()
|
||||
} else {
|
||||
win.blur()
|
||||
}
|
||||
} else {
|
||||
app.focus({steal: true})
|
||||
if (win.isMinimized()) {
|
||||
|
Loading…
Reference in New Issue
Block a user