mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 01:54:47 +00:00
fix: console sizing issues (#6540)
fix: console sizing issues (for good)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user