mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
fix terminal not cancelling.
This commit is contained in:
@@ -149,7 +149,6 @@ export function TerminalInput({ terminal, router, 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
|
||||
|
||||
Reference in New Issue
Block a user