Browse Source

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

pull/7873/head
Ramesh Mane 8 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
e.preventDefault()
const page = 1
await changePageWithLoading(page)
await changePageWithLoading(getTotalPages())
}
const onUp = async (e: KeyboardEvent) => {
@ -67,7 +65,7 @@ const usePaginationShortcuts = ({
if (!e.altKey) return
e.preventDefault()
await changePageWithLoading(getTotalPages())
await changePageWithLoading(1)
}
return {

Loading…
Cancel
Save