Browse Source

feat(nc-ui): swap pagination shortcuts arrowUp & arrowDown (#7865)

pull/7873/head
Ramesh Mane 9 months ago committed by GitHub
parent
commit
bfd59264e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts

6
packages/nc-gui/components/smartsheet/grid/usePaginationShortcuts.ts

@ -56,9 +56,7 @@ const usePaginationShortcuts = ({
if (!e.altKey) return if (!e.altKey) return
e.preventDefault() e.preventDefault()
const page = 1 await changePageWithLoading(getTotalPages())
await changePageWithLoading(page)
} }
const onUp = async (e: KeyboardEvent) => { const onUp = async (e: KeyboardEvent) => {
@ -67,7 +65,7 @@ const usePaginationShortcuts = ({
if (!e.altKey) return if (!e.altKey) return
e.preventDefault() e.preventDefault()
await changePageWithLoading(getTotalPages()) await changePageWithLoading(1)
} }
return { return {

Loading…
Cancel
Save