Collapse the terminal dock from Escape anywhere in the panel.

Drop unused suggestion state and copy, and give the panel a reduced-motion-aware open transition.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 13:13:43 +02:00
parent 35a575dba9
commit 19d00da9bb
6 changed files with 70 additions and 14 deletions

View File

@@ -13,7 +13,13 @@
</button>
@if (open()) {
<section class="terminal-dock-panel" [id]="panelId" [attr.aria-label]="copy().panelLabel">
<section
class="terminal-dock-panel"
[id]="panelId"
tabindex="-1"
[attr.aria-label]="copy().panelLabel"
(keydown)="onPanelKeydown($event)"
>
<div class="terminal-dock-toolbar cluster">
<p class="terminal-dock-title">{{ copy().panelLabel }}</p>
<button