Focus Finder within its opening gesture to prevent menu races

This commit is contained in:
n30nex committed 2026-09-27 01:34:21 -04:00
1 parent 010791a809
commit a8f8c42f9f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -410,7 +410,7 @@ async function start(): Promise<void> {
closeSoundPanel();
setLayersOpen(false);
renderNodeSearch();
window.requestAnimationFrame(() => nodeSearch.focus());
nodeSearch.focus();
});
let wasHidden = document.hidden;
document.addEventListener('visibilitychange', () => {
+1 -1
View File
@@ -349,7 +349,7 @@ function wireSearch(renderer: NetgraphRenderer, select: (nodeID: string) => void
closeSoundPanel();
closeDisplay();
renderResults();
requestAnimationFrame(() => nodeSearch.focus());
nodeSearch.focus();
});
}