mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 17:50:00 -06:00
Focus back on the parent window when an item in context menu is clicked
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user