|
|
@ -21,13 +21,7 @@ const showEditFormulaWarning = refAutoReset(false, timeout) |
|
|
|
const showClearFormulaWarning = refAutoReset(false, timeout) |
|
|
|
const showClearFormulaWarning = refAutoReset(false, timeout) |
|
|
|
|
|
|
|
|
|
|
|
useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEvent) => { |
|
|
|
useSelectedCellKeyupListener(inject(ActiveCellInj, ref(false)), (e: KeyboardEvent) => { |
|
|
|
switch (e.key) { |
|
|
|
showClearFormulaWarning.value = true |
|
|
|
case 'Enter': |
|
|
|
|
|
|
|
showEditFormulaWarning.value = true |
|
|
|
|
|
|
|
break |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
showClearFormulaWarning.value = true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|