We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d7c19 commit 19c41b9Copy full SHA for 19c41b9
frontend/src/packages/dashboard/components/ConfirmationModal/ConfirmationWindow.tsx
@@ -77,6 +77,12 @@ export default function ConfirmationWindow({
77
setInputValue(value);
78
};
79
80
+ const handleKeyDown = (e: React.KeyboardEvent) => {
81
+ if (e.key === 'Enter') {
82
+ handleSubmit();
83
+ }
84
85
+
86
return (
87
<Modal
88
open={open}
@@ -93,6 +99,7 @@ export default function ConfirmationWindow({
93
99
<TextField
94
100
value={inputValue}
95
101
onChange={handleChange}
102
+ onKeyDown={handleKeyDown}
96
103
sx={{ marginRight: "10px" }}
97
104
/>
98
105
<Button background="#73EEDC" onClick={handleSubmit}>
0 commit comments