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
+3 -2
+3 -2
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
if (e.shiftKey && this.field.type === 'text') return
e.preventDefault() e.preventDefault()
this.$refs.defaultValue.blur() this.$refs.defaultValue.blur()
}
}, },
resize (e) { resize (e) {
if (e.target.id === 'mask') { if (e.target.id === 'mask') {