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