mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Improve handling of global hotkey in Linux.
This commit is contained in:
parent
633ea633b9
commit
372ce351b4
@ -233,6 +233,11 @@ function registerGlobalHotkey() {
|
|||||||
// if alwaysOnTop is on, calling app.hide() won't hide the window
|
// if alwaysOnTop is on, calling app.hide() won't hide the window
|
||||||
win.hide()
|
win.hide()
|
||||||
}
|
}
|
||||||
|
} else if (isLinux) {
|
||||||
|
win.blur()
|
||||||
|
// If we don't hide the window, it will stay on top of the stack even though it's not visible
|
||||||
|
// and pressing the hotkey again won't do anything
|
||||||
|
win.hide()
|
||||||
} else {
|
} else {
|
||||||
win.blur()
|
win.blur()
|
||||||
if (CONFIG.get("settings.showInMenu") || CONFIG.get("settings.alwaysOnTop")) {
|
if (CONFIG.get("settings.showInMenu") || CONFIG.get("settings.alwaysOnTop")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user