do not delete area in preview mode

pull/150/merge
Pete Matsyburka 2 years ago
parent 30c913b54f
commit 7510e0cb6b

@ -500,7 +500,7 @@ export default {
this.selectedAreaRef.value = null
}
if (['Backspace', 'Delete'].includes(e.key) && this.selectedAreaRef.value && document.activeElement === document.body) {
if (this.editable && ['Backspace', 'Delete'].includes(e.key) && this.selectedAreaRef.value && document.activeElement === document.body) {
this.removeArea(this.selectedAreaRef.value)
this.selectedAreaRef.value = null

Loading…
Cancel
Save