fix: allow Escape in terminal, exit fullscreen on click outside

- Remove global Escape key listener that intercepted Escape before
  xterm.js could receive it, breaking vim/tmux/etc.
- Add click-outside-to-exit for fullscreen: clicking on the padding
  area around .terminal-page-content or .terminal-fullscreen-header
  exits fullscreen. Clicks inside content or header are ignored.
- Add 8px padding/gap to .terminal-page.fullscreen to create a
  clickable border area around the terminal.
- Keep Exit button and Alt+Shift+F as explicit exit methods.

Quality gates: tsc --noEmit (clean), pytest (208 passed, 6 pre-existing)
This commit is contained in:
Alex Blank
2026-05-29 11:11:03 +02:00
parent 79ad3b0715
commit fe98f966d6
2 changed files with 20 additions and 13 deletions
+2 -2
View File
@@ -2887,8 +2887,8 @@ a.nav-item,
right: 0;
bottom: 0;
z-index: 1000;
padding: 0;
gap: 0;
padding: 8px;
gap: 8px;
background: #1e1e1e;
}