automatically focus on terminal

This commit is contained in:
b1ek 2023-03-23 10:29:41 +10:00
parent f2b53df3a2
commit 53813967ed
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 0 deletions

View File

@ -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;