From 53813967ed18739a0e61e5af60a95c2a6ed62c38 Mon Sep 17 00:00:00 2001 From: b1ek Date: Thu, 23 Mar 2023 10:29:41 +1000 Subject: [PATCH] automatically focus on terminal --- src/Console.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Console.js b/src/Console.js index e7ec68f..5e62810 100644 --- a/src/Console.js +++ b/src/Console.js @@ -42,6 +42,7 @@ export class Console extends React.Component { /** @type { Terminal } */ const terminal = term_ref.terminal; + terminal.focus(); window.onresize = (ev) => { const t_width = this.terminal_el.clientWidth;