chore: format

This commit is contained in:
2026-02-27 00:55:25 +01:00
parent 2ac77bdb30
commit a2b0314bd7
10 changed files with 106 additions and 29 deletions

View File

@@ -13,7 +13,11 @@ export const useKeyDown = (callback: KeyDownCallback) => {
if (app.lagModalOpen) return;
const ndsButton = mapCodeToNDS(event.code);
if (ndsButton && document.activeElement && document.activeElement !== document.body) {
if (
ndsButton &&
document.activeElement &&
document.activeElement !== document.body
) {
(document.activeElement as HTMLElement).blur();
}