Make the terminal dock toggle, scroll, and remember commands honestly.

The desktop trigger now collapses through the shared toggle, the log stays on the newest line, Shift+K is left to the browser, history walks like a shell, and maximize keeps one accessible name.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 13:51:55 +02:00
parent 19d00da9bb
commit b8b9e57d06
7 changed files with 325 additions and 22 deletions

View File

@@ -104,7 +104,12 @@ export class TerminalDockService {
}
private readonly onDocumentKeydown = (event: KeyboardEvent): void => {
if (event.key.toLowerCase() !== 'k' || !(event.ctrlKey || event.metaKey) || event.altKey) {
if (
event.key.toLowerCase() !== 'k' ||
!(event.ctrlKey || event.metaKey) ||
event.altKey ||
event.shiftKey
) {
return;
}