diff --git a/src/Terminal/ui/TerminalInput.tsx b/src/Terminal/ui/TerminalInput.tsx index dc3144c74..3934a08d9 100644 --- a/src/Terminal/ui/TerminalInput.tsx +++ b/src/Terminal/ui/TerminalInput.tsx @@ -140,9 +140,9 @@ export function TerminalInput({ terminal, engine, player }: IProps): React.React useEffect(() => { function keyDown(this: Document, event: KeyboardEvent): void { if (terminal.contractOpen) return; + if (event.metaKey || event.ctrlKey) return; const ref = terminalInput.current; if (ref) ref.focus(); - // Cancel action if (event.keyCode === KEY.C && event.ctrlKey) { terminal.finishAction(player, true); @@ -351,7 +351,7 @@ export function TerminalInput({ terminal, engine, player }: IProps): React.React className: classes.input, startAdornment: ( <> - + [{player.getCurrentServer().hostname} ~{terminal.cwd()}]>  diff --git a/src/Terminal/ui/TerminalRoot.tsx b/src/Terminal/ui/TerminalRoot.tsx index bb85fd71c..00d020634 100644 --- a/src/Terminal/ui/TerminalRoot.tsx +++ b/src/Terminal/ui/TerminalRoot.tsx @@ -62,7 +62,7 @@ export function TerminalRoot({ terminal, engine, player }: IProps): React.ReactE const hook = scrollHook.current; if (hook !== null) { - setTimeout(() => hook.scrollIntoView(true), 10); + setTimeout(() => hook.scrollIntoView(true), 50); } const classes = useStyles();