shift enter value

This commit is contained in:
Pete Matsyburka committed 2026-11-12 20:12:53 +02:00
1 parent 4fb3e5bd47
commit 06c44e8b2f
1 file changed
+5 -4
+5 -4
View File
@@ -700,11 +700,12 @@ export default {
this.save() this.save()
}, },
onDefaultValueEnter (e) { onDefaultValueEnter (e) {
if (this.field.type !== 'heading') { if (this.field.type === 'heading') return
e.preventDefault() if (e.shiftKey && this.field.type === 'text') return
this.$refs.defaultValue.blur() e.preventDefault()
}
this.$refs.defaultValue.blur()
}, },
resize (e) { resize (e) {
if (e.target.id === 'mask') { if (e.target.id === 'mask') {