Skip to content

Commit

Permalink
Add PageUpDown functionality to navigate the ActionList, Update test …
Browse files Browse the repository at this point in the history
…snaps
  • Loading branch information
Adrián Bolonio authored Jun 23, 2022
1 parent bb458c0 commit e24fe8c
Show file tree
Hide file tree
Showing 3 changed files with 306 additions and 282 deletions.
4 changes: 3 additions & 1 deletion src/ActionList/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export const List = React.forwardRef<HTMLUListElement, ActionListProps>(
selectionVariant: containerSelectionVariant // TODO: Remove after DropdownMenu2 deprecation
} = React.useContext(ActionListContainerContext)

const {containerRef} = useFocusZone({bindKeys: FocusKeys.ArrowVertical | FocusKeys.HomeAndEnd})
const {containerRef} = useFocusZone({
bindKeys: FocusKeys.ArrowVertical | FocusKeys.HomeAndEnd | FocusKeys.PageUpDown
})

return (
<div ref={containerRef as React.RefObject<HTMLDivElement>}>
Expand Down
Loading

0 comments on commit e24fe8c

Please sign in to comment.