mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 08:58:58 +01:00
make global shortcut work with windows in system tray
This commit is contained in:
parent
a29597a4bf
commit
9a5f2f8d3b
@ -343,6 +343,10 @@ async function registerGlobalShortcuts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// window may be hidden / not in focus
|
// window may be hidden / not in focus
|
||||||
|
if (targetWindow.isMinimized()) {
|
||||||
|
targetWindow.restore();
|
||||||
|
}
|
||||||
|
targetWindow.show();
|
||||||
targetWindow.focus();
|
targetWindow.focus();
|
||||||
|
|
||||||
targetWindow.webContents.send("globalShortcut", action.actionName);
|
targetWindow.webContents.send("globalShortcut", action.actionName);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user