mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 10:03:48 +01:00
fix terminal not cancelling.
This commit is contained in:
parent
374b81ffae
commit
cd0aa192f5
@ -245,6 +245,7 @@ export class Terminal implements ITerminal {
|
||||
this.print("Cancelled");
|
||||
}
|
||||
this.action = null;
|
||||
console.log("done");
|
||||
TerminalEvents.emit();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user