diff --git a/components/REPL/index.tsx b/components/REPL/index.tsx index 5dc955b..ac53d33 100644 --- a/components/REPL/index.tsx +++ b/components/REPL/index.tsx @@ -7,9 +7,14 @@ const REPL = () => { const inputRef = useRef(); const onCommandExecuted = (result: string[]) => manipulateHistory(result.reverse().concat(history).slice(0, 1000)); + const focusInput = () => { + if (inputRef.current) inputRef.current.focus(); + } + return (<> +
); }; diff --git a/styles/REPL/REPLInput.module.css b/styles/REPL/REPLInput.module.css index a2ceb72..ab09f38 100644 --- a/styles/REPL/REPLInput.module.css +++ b/styles/REPL/REPLInput.module.css @@ -19,7 +19,6 @@ width: 100%; flex-direction: row; flex-wrap: nowrap; - flex-grow: 2; } .inputstart {