|
@@ -128,7 +128,7 @@ function useSubmitHandler() {
|
|
|
|
|
|
const shouldSubmit = (e: KeyboardEvent) => {
|
|
const shouldSubmit = (e: KeyboardEvent) => {
|
|
if (e.key !== "Enter") return false;
|
|
if (e.key !== "Enter") return false;
|
|
-
|
|
|
|
|
|
+
|
|
return (
|
|
return (
|
|
(config.submitKey === SubmitKey.AltEnter && e.altKey) ||
|
|
(config.submitKey === SubmitKey.AltEnter && e.altKey) ||
|
|
(config.submitKey === SubmitKey.CtrlEnter && e.ctrlKey) ||
|
|
(config.submitKey === SubmitKey.CtrlEnter && e.ctrlKey) ||
|