From c35ecec5a4f369339aaaf72d5d6cf1ecb0c08727 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sat, 15 Jun 2024 23:17:45 -0700 Subject: [PATCH] Focus back on the parent window when an item in context menu is clicked --- src/IPC.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/IPC.js b/src/IPC.js index 5072f30c..947f63a8 100644 --- a/src/IPC.js +++ b/src/IPC.js @@ -422,6 +422,8 @@ window.addEventListener('message', async (event) => { if (item.action !== undefined) { item.action(); } + // focus the window + $(el_window).focusWindow(); }, items: item.items ? sanitize_items(item.items) : undefined };