Skip to content

Commit

Permalink
feat(nc-ui): swap pagination shortcuts arrowUp & arrowDown (#7865)
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshmane7218 committed Mar 14, 2024
1 parent d95b9de commit bfd5926
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ const usePaginationShortcuts = ({
if (!e.altKey) return
e.preventDefault()

const page = 1

await changePageWithLoading(page)
await changePageWithLoading(getTotalPages())
}

const onUp = async (e: KeyboardEvent) => {
Expand All @@ -67,7 +65,7 @@ const usePaginationShortcuts = ({
if (!e.altKey) return
e.preventDefault()

await changePageWithLoading(getTotalPages())
await changePageWithLoading(1)
}

return {
Expand Down

0 comments on commit bfd5926

Please sign in to comment.