Skip to content

A local-first personal finance app

Standardise ledger scrolling when using keyboard shortcuts (#7283)

James Skinnerc75a94e8b053
diff --git a/packages/desktop-client/src/components/table.tsx b/packages/desktop-client/src/components/table.tsx
index e37627d5b5..637cc5dd08 100644
--- a/packages/desktop-client/src/components/table.tsx
+++ b/packages/desktop-client/src/components/table.tsx
@@ -1367,6 +1367,7 @@ export function useTableNavigator<T extends TableItem>(
case 'ArrowUp':
case 'k':
if (e.target.tagName !== 'INPUT') {
+ e.preventDefault();
onMove('up');
}
break;
@@ -1374,6 +1375,7 @@ export function useTableNavigator<T extends TableItem>(
case 'ArrowDown':
case 'j':
if (e.target.tagName !== 'INPUT') {
+ e.preventDefault();
onMove('down');
}
break;
diff --git a/upcoming-release-notes/7283.md b/upcoming-release-notes/7283.md
new file mode 100644
index 0000000000..a7375e1377
--- /dev/null
+++ b/upcoming-release-notes/7283.md
@@ -0,0 +1,6 @@
+---
+category: Bugfixes
+authors: [JSkinnerUK]
+---
+
+Standardise ledger scrolling when using keyboard shortcuts