fix: prevent default scrolling behavior while using arrow keys to switch between entries (#1447)

* fix: prevent default scrolling behaviour while using arrow keys to switch between entries

* chore: update changelog

* chore: update changelog
This commit is contained in:
Lava
2024-11-07 17:13:36 +08:00
committed by GitHub
parent ec82f036b4
commit ed5ee50fe2
2 changed files with 4 additions and 2 deletions
@@ -67,7 +67,7 @@ export const EntryColumnShortcutHandler: FC<{
entryId: nextId,
})
},
{ scopes: HotKeyScopeMap.Home, enabled: enabledArrowKey },
{ scopes: HotKeyScopeMap.Home, enabled: enabledArrowKey, preventDefault: true },
)
useHotkeys(
shortcuts.entries.previous.key,
@@ -87,7 +87,7 @@ export const EntryColumnShortcutHandler: FC<{
entryId: nextId,
})
},
{ scopes: HotKeyScopeMap.Home, enabled: enabledArrowKey },
{ scopes: HotKeyScopeMap.Home, enabled: enabledArrowKey, preventDefault: true },
)
return null
})
+2
View File
@@ -14,3 +14,5 @@
- Improvement web app global shortcuts.
## Bug Fixes
- While using arrow keys to switch between entries, the entry view will not scroll unexpexted.