automatically focus on terminal
This commit is contained in:
parent
f2b53df3a2
commit
53813967ed
|
@ -42,6 +42,7 @@ export class Console extends React.Component {
|
||||||
|
|
||||||
/** @type { Terminal } */
|
/** @type { Terminal } */
|
||||||
const terminal = term_ref.terminal;
|
const terminal = term_ref.terminal;
|
||||||
|
terminal.focus();
|
||||||
|
|
||||||
window.onresize = (ev) => {
|
window.onresize = (ev) => {
|
||||||
const t_width = this.terminal_el.clientWidth;
|
const t_width = this.terminal_el.clientWidth;
|
||||||
|
|
Loading…
Reference in New Issue