mirror of
https://github.com/n30nex/CartoLite-Server.git
synced 2026-10-23 06:22:28 +00:00
Focus Finder within its opening gesture to prevent menu races
This commit is contained in:
1 parent
010791a809
commit
a8f8c42f9f
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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', () => {
|
||||
|
||||
@@ -349,7 +349,7 @@ function wireSearch(renderer: NetgraphRenderer, select: (nodeID: string) => void
|
||||
closeSoundPanel();
|
||||
closeDisplay();
|
||||
renderResults();
|
||||
requestAnimationFrame(() => nodeSearch.focus());
|
||||
nodeSearch.focus();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user