mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 16:39:02 +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
|
||||
if (targetWindow.isMinimized()) {
|
||||
targetWindow.restore();
|
||||
}
|
||||
targetWindow.show();
|
||||
targetWindow.focus();
|
||||
|
||||
targetWindow.webContents.send("globalShortcut", action.actionName);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user