diff --git a/packages/frontend-core/src/components/grid/layout/Grid.svelte b/packages/frontend-core/src/components/grid/layout/Grid.svelte
index 8fd4e05196..8903a9bcc9 100644
--- a/packages/frontend-core/src/components/grid/layout/Grid.svelte
+++ b/packages/frontend-core/src/components/grid/layout/Grid.svelte
@@ -145,7 +145,9 @@
{/if}
-
+ {#if allowDeleteRows}
+
+ {/if}
diff --git a/packages/frontend-core/src/components/grid/overlays/KeyboardManager.svelte b/packages/frontend-core/src/components/grid/overlays/KeyboardManager.svelte
index f0f56118d9..e449feb64c 100644
--- a/packages/frontend-core/src/components/grid/overlays/KeyboardManager.svelte
+++ b/packages/frontend-core/src/components/grid/overlays/KeyboardManager.svelte
@@ -13,6 +13,7 @@
clipboard,
dispatch,
selectedRows,
+ config,
} = getContext("grid")
const ignoredOriginSelectors = [
@@ -40,7 +41,7 @@
e.preventDefault()
dispatch("add-row-inline")
} else if (e.key === "Delete" || e.key === "Backspace") {
- if (Object.keys($selectedRows).length) {
+ if (Object.keys($selectedRows).length && $config.allowDeleteRows) {
dispatch("request-bulk-delete")
}
}
@@ -106,7 +107,7 @@
break
case "Delete":
case "Backspace":
- if (Object.keys($selectedRows).length) {
+ if (Object.keys($selectedRows).length && $config.allowDeleteRows) {
dispatch("request-bulk-delete")
} else {
deleteSelectedCell()