|
|
@ -625,7 +625,7 @@ onKeyDown('ArrowUp', () => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
onKeyDown('Delete', () => { |
|
|
|
onKeyDown('Delete', () => { |
|
|
|
if (document.activeElement?.tagName === 'INPUT') return |
|
|
|
if (document.activeElement?.tagName === 'TEXTAREA') return |
|
|
|
const isDeletedField = fieldStatus(activeField.value) === 'delete' |
|
|
|
const isDeletedField = fieldStatus(activeField.value) === 'delete' |
|
|
|
if (!isDeletedField && activeField.value) { |
|
|
|
if (!isDeletedField && activeField.value) { |
|
|
|
onFieldDelete(activeField.value) |
|
|
|
onFieldDelete(activeField.value) |
|
|
@ -633,7 +633,7 @@ onKeyDown('Delete', () => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
onKeyDown('Backspace', () => { |
|
|
|
onKeyDown('Backspace', () => { |
|
|
|
if (document.activeElement?.tagName === 'INPUT') return |
|
|
|
if (document.activeElement?.tagName === 'TEXTAREA') return |
|
|
|
const isDeletedField = fieldStatus(activeField.value) === 'delete' |
|
|
|
const isDeletedField = fieldStatus(activeField.value) === 'delete' |
|
|
|
if (!isDeletedField && activeField.value) { |
|
|
|
if (!isDeletedField && activeField.value) { |
|
|
|
onFieldDelete(activeField.value) |
|
|
|
onFieldDelete(activeField.value) |
|
|
@ -641,7 +641,7 @@ onKeyDown('Backspace', () => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
onKeyDown('ArrowRight', () => { |
|
|
|
onKeyDown('ArrowRight', () => { |
|
|
|
if (document.activeElement?.tagName === 'INPUT') return |
|
|
|
if (document.activeElement?.tagName === 'TEXTAREA') return |
|
|
|
if (activeField.value) { |
|
|
|
if (activeField.value) { |
|
|
|
const input = document.querySelector('.nc-fields-input') |
|
|
|
const input = document.querySelector('.nc-fields-input') |
|
|
|
if (input) { |
|
|
|
if (input) { |
|
|
|