mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
[Doc] Update Injecting HTML guide
keyCode is deprecated, method in doc doesn't work https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode Updating with "modern" method key:'Enter'
This commit is contained in:
parent
4cba813fe4
commit
5ef041a5db
@ -21,7 +21,7 @@ To automatically enter commands in the terminal (only works if looking at the te
|
|||||||
terminalInput[handler].onChange({target:terminalInput});
|
terminalInput[handler].onChange({target:terminalInput});
|
||||||
|
|
||||||
// Simulate an enter press
|
// Simulate an enter press
|
||||||
terminalInput[handler].onKeyDown({keyCode:13,preventDefault:()=>null});
|
terminalInput[handler].onKeyDown({key:'Enter',preventDefault:()=>null});
|
||||||
|
|
||||||
|
|
||||||
To add lines to the terminal (only works if looking at the terminal):
|
To add lines to the terminal (only works if looking at the terminal):
|
||||||
|
Loading…
Reference in New Issue
Block a user