mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 15:12:27 +01:00
Update ctrl+c hotkey to print current text to terminal without executing it to mimic real terminal behavior
This commit is contained in:
parent
6c026e6d5c
commit
6d8a3e192b
@ -324,6 +324,7 @@ export function TerminalInput({ terminal, router, player }: IProps): React.React
|
||||
if (Settings.EnableBashHotkeys) {
|
||||
if (event.code === KEYCODE.C && event.ctrlKey && ref && ref.selectionStart === ref.selectionEnd) {
|
||||
event.preventDefault();
|
||||
terminal.print(`[${player.getCurrentServer().hostname} ~${terminal.cwd()}]> ${value}`);
|
||||
modifyInput("clearall");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user