mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Fix focus issues on Windows after dialog interactions (#16073)
fix https://github.com/siyuan-note/siyuan/issues/16071
This commit is contained in:
parent
8725e5daa8
commit
067db0791f
3 changed files with 47 additions and 0 deletions
|
|
@ -866,6 +866,13 @@ app.whenReady().then(() => {
|
|||
event.sender.send("siyuan-event", "leave-full-screen");
|
||||
});
|
||||
});
|
||||
ipcMain.on("siyuan-focus-fix", (event) => {
|
||||
const currentWindow = getWindowByContentId(event.sender.id);
|
||||
if (currentWindow && process.platform === "win32") {
|
||||
currentWindow.blur();
|
||||
currentWindow.focus();
|
||||
}
|
||||
});
|
||||
ipcMain.on("siyuan-cmd", (event, data) => {
|
||||
let cmd = data;
|
||||
let webContentsId = event.sender.id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue