fix: console sizing issues (#6540)

fix: console sizing issues (for good)
This commit is contained in:
Calum H.
2026-06-29 14:38:30 +00:00
committed by GitHub
parent 204bd52a5a
commit b09c26f616
8 changed files with 63 additions and 12 deletions
+6 -1
View File
@@ -198,7 +198,12 @@ export function useTerminal(options: UseTerminalOptions): UseTerminalReturn {
const mod = e.ctrlKey || e.metaKey
if (!mod) return true
const key = e.key.toLowerCase()
if (key === 'c' || key === 'insert' || key === 'a') {
if (key === 'a') {
e.preventDefault()
term.selectAll()
return false
}
if (key === 'c' || key === 'insert') {
return false
}
return true