create variable Enter submit

This commit is contained in:
mbecker20
2025-11-11 14:18:28 -08:00
parent 0fa1edba2c
commit 78766463d6

View File

@@ -261,6 +261,11 @@ const CreateVariable = () => {
onChange={(e) =>
setName(e.target.value.toUpperCase().replaceAll(" ", "_"))
}
onKeyDown={(e) => {
if (e.key === "Enter" && name) {
submit();
}
}}
placeholder="Input variable name"
/>
</div>