diff --git a/packages/nc-gui/components/cell/Currency.vue b/packages/nc-gui/components/cell/Currency.vue index bff861c977..da72a21fa9 100644 --- a/packages/nc-gui/components/cell/Currency.vue +++ b/packages/nc-gui/components/cell/Currency.vue @@ -65,6 +65,7 @@ onMounted(() => { @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> {{ currency }} diff --git a/packages/nc-gui/components/cell/Decimal.vue b/packages/nc-gui/components/cell/Decimal.vue index 743186fd30..5591880433 100644 --- a/packages/nc-gui/components/cell/Decimal.vue +++ b/packages/nc-gui/components/cell/Decimal.vue @@ -34,6 +34,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/Duration.vue b/packages/nc-gui/components/cell/Duration.vue index 219bc1280b..bcb32c34fc 100644 --- a/packages/nc-gui/components/cell/Duration.vue +++ b/packages/nc-gui/components/cell/Duration.vue @@ -88,6 +88,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> {{ localState }} diff --git a/packages/nc-gui/components/cell/Email.vue b/packages/nc-gui/components/cell/Email.vue index c5d74a3680..f7738e109f 100644 --- a/packages/nc-gui/components/cell/Email.vue +++ b/packages/nc-gui/components/cell/Email.vue @@ -34,6 +34,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> diff --git a/packages/nc-gui/components/cell/Float.vue b/packages/nc-gui/components/cell/Float.vue index 9e0a37921a..a2a973d9b2 100644 --- a/packages/nc-gui/components/cell/Float.vue +++ b/packages/nc-gui/components/cell/Float.vue @@ -34,6 +34,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/Integer.vue b/packages/nc-gui/components/cell/Integer.vue index 7b441c336b..d62b871d8f 100644 --- a/packages/nc-gui/components/cell/Integer.vue +++ b/packages/nc-gui/components/cell/Integer.vue @@ -38,6 +38,7 @@ function onKeyDown(evt: KeyboardEvent) { @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/Percent.vue b/packages/nc-gui/components/cell/Percent.vue index c518033aec..04bbfe2dcf 100644 --- a/packages/nc-gui/components/cell/Percent.vue +++ b/packages/nc-gui/components/cell/Percent.vue @@ -25,6 +25,7 @@ const vModel = useVModel(props, 'modelValue', emits) @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/Text.vue b/packages/nc-gui/components/cell/Text.vue index 9094a4adcb..465cfd73f9 100644 --- a/packages/nc-gui/components/cell/Text.vue +++ b/packages/nc-gui/components/cell/Text.vue @@ -31,6 +31,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index 421be3d606..4ed873947f 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -30,6 +30,7 @@ const focus: VNodeRef = (el) => (el as HTMLTextAreaElement)?.focus() @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> {{ vModel }} diff --git a/packages/nc-gui/components/cell/Url.vue b/packages/nc-gui/components/cell/Url.vue index b785332aa5..9c8962465d 100644 --- a/packages/nc-gui/components/cell/Url.vue +++ b/packages/nc-gui/components/cell/Url.vue @@ -83,6 +83,7 @@ watch( @keydown.left.stop @keydown.right.stop @keydown.up.stop + @keydown.delete.stop /> import { onUnmounted } from '@vue/runtime-core' -import { Card } from 'ant-design-vue' +import type { Card } from 'ant-design-vue' import { RelationTypes, UITypes } from 'nocodb-sdk' import type { ColumnType, LinkToAnotherRecordType } from 'nocodb-sdk' import { diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index f089a9aac9..69f3d33533 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/packages/nc-gui/composables/useMultiSelect/index.ts @@ -176,11 +176,9 @@ export function useMultiSelect( break /** on delete key press clear cell */ case 'Delete': - if (!unref(editEnabled)) { - e.preventDefault() - clearRangeRows() - await clearCell(selected as { row: number; col: number }) - } + e.preventDefault() + clearRangeRows() + await clearCell(selected as { row: number; col: number }) break /** on arrow key press navigate through cells */ case 'ArrowRight':