From b867d359f4bc8692094ebb0b4ccb44f97464ce2a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Sun, 16 Apr 2023 11:56:27 +0100 Subject: [PATCH] Fix errors not showing in sticky column and clear cell value on backspace press --- .../src/components/sheet/layout/SheetRow.svelte | 2 +- .../src/components/sheet/layout/StickyColumn.svelte | 5 +++-- .../src/components/sheet/overlays/KeyboardManager.svelte | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/frontend-core/src/components/sheet/layout/SheetRow.svelte b/packages/frontend-core/src/components/sheet/layout/SheetRow.svelte index 39cb7c2c15..fab8d2c1b3 100644 --- a/packages/frontend-core/src/components/sheet/layout/SheetRow.svelte +++ b/packages/frontend-core/src/components/sheet/layout/SheetRow.svelte @@ -40,8 +40,8 @@ {column} {row} {invertY} - invertX={idx >= $columnHorizontalInversionIndex} {rowFocused} + invertX={idx >= $columnHorizontalInversionIndex} highlighted={rowHovered || rowFocused || reorderSource === column.name} selected={rowSelected} rowIdx={idx} diff --git a/packages/frontend-core/src/components/sheet/layout/StickyColumn.svelte b/packages/frontend-core/src/components/sheet/layout/StickyColumn.svelte index 5abcfbb90f..e38f43b3c1 100644 --- a/packages/frontend-core/src/components/sheet/layout/StickyColumn.svelte +++ b/packages/frontend-core/src/components/sheet/layout/StickyColumn.svelte @@ -132,6 +132,9 @@ {#if $stickyColumn} {/if} diff --git a/packages/frontend-core/src/components/sheet/overlays/KeyboardManager.svelte b/packages/frontend-core/src/components/sheet/overlays/KeyboardManager.svelte index db06069233..a9b733c89a 100644 --- a/packages/frontend-core/src/components/sheet/overlays/KeyboardManager.svelte +++ b/packages/frontend-core/src/components/sheet/overlays/KeyboardManager.svelte @@ -67,6 +67,7 @@ changeFocusedRow(1) break case "Delete": + case "Backspace": deleteSelectedCell() break case "Enter":