diff --git a/client/src/components/Setup.jsx b/client/src/components/Setup.jsx index aec99b1..054b891 100644 --- a/client/src/components/Setup.jsx +++ b/client/src/components/Setup.jsx @@ -23,6 +23,16 @@ function Setup() { alignItems: "center", }; + function enterCouncil() { + console.log("Entering council..."); + } + + function handleKeyDown(e) { + if (e.key === "Enter") { + enterCouncil(); + } + } + return (
@@ -41,6 +51,7 @@ function Setup() { className="text-input" rows="2" cols="30" + onKeyDown={handleKeyDown} >
@@ -54,7 +65,12 @@ function Setup() { ))}
- + ); }