refactor: name the preview's ref among its key listener's inputs

This commit is contained in:
Linus Rath
2026-11-04 14:36:10 +01:00
parent acacf111de
commit 2d807b9a66
+1 -1
View File
@@ -102,7 +102,7 @@ export function PreviewShell({ name, onClose, onDownload, actions, neighbours, c
window.removeEventListener("keydown", onKey, { capture: true });
window.removeEventListener("keydown", onArrow);
};
}, [onClose, neighbours]);
}, [onClose, neighbours, shellRef]);
return (
<div