mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-04-22 18:20:09 +02:00
fix terminal not cancelling.
This commit is contained in:
src/Terminal
@ -245,6 +245,7 @@ export class Terminal implements ITerminal {
|
|||||||
this.print("Cancelled");
|
this.print("Cancelled");
|
||||||
}
|
}
|
||||||
this.action = null;
|
this.action = null;
|
||||||
|
console.log("done");
|
||||||
TerminalEvents.emit();
|
TerminalEvents.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,6 @@ export function TerminalInput({ terminal, router, player }: IProps): React.React
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
function keyDown(this: Document, event: KeyboardEvent): void {
|
function keyDown(this: Document, event: KeyboardEvent): void {
|
||||||
if (terminal.contractOpen) return;
|
if (terminal.contractOpen) return;
|
||||||
if (event.metaKey || event.ctrlKey) return;
|
|
||||||
const ref = terminalInput.current;
|
const ref = terminalInput.current;
|
||||||
if (ref) ref.focus();
|
if (ref) ref.focus();
|
||||||
// Cancel action
|
// Cancel action
|
||||||
|
Reference in New Issue
Block a user