mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-22 18:45:19 +02:00
disable shift+enter save
This commit is contained in:
parent
ece9ed730d
commit
e470a8ec58
1 changed files with 2 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ export function EditableField({
|
|||
}
|
||||
setIsEditing(false);
|
||||
}
|
||||
/* DISABLE shift+enter save for multiline fields
|
||||
if (multiline && e.key === "Enter" && e.shiftKey) {
|
||||
e.preventDefault();
|
||||
if (isValid && localValue !== value) {
|
||||
|
|
@ -77,6 +78,7 @@ export function EditableField({
|
|||
}
|
||||
setIsEditing(false);
|
||||
}
|
||||
*/
|
||||
if (e.key === "Escape") {
|
||||
setLocalValue(value);
|
||||
setIsEditing(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue