fix: ESC in immersive now exits fullscreen too (#202)

ESC key was calling onClose() directly, skipping the fullscreen
exit logic. Changed to handleExitImmersive() which exits fullscreen
before closing, matching the behavior of the UI close buttons.

cc
This commit is contained in:
victorrhgap committed 2026-03-24 19:12:21 -06:00
1 parent 45b3390c6d
commit badbbf2973
1 file changed
+1 -1
@@ -282,7 +282,7 @@
switch (e.key) {
case 'Escape':
onClose();
handleExitImmersive();
break;
case 'F11':
e.preventDefault();