mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-29 04:10:01 -05:00
create variable Enter submit
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user