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:
@@ -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
|
||||
})
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user