@@ -91,7 +91,7 @@ function useCardsHeights() {
9191function useFocusedHighlight (
9292 highlights : Highlight [ ] ,
9393 element : React . RefObject < HTMLElement > ,
94- container : HTMLElement ,
94+ container : HTMLElement
9595) {
9696 const focusedId = useSelector ( focused ) ;
9797 const focusedHighlight = React . useMemo (
@@ -134,7 +134,7 @@ function useFocusedHighlight(
134134 setShouldFocusCard ( ! cardIsFocused ) ;
135135 } , [ element , focusedHighlight ] ) ;
136136
137- useKeyCombination ( { key : 'Enter' } , editOnEnter ) ;
137+ useKeyCombination ( { key : 'Enter' } , editOnEnter , noopKeyCombinationHandler ( [ container , element ] ) ) ;
138138 useKeyCombination ( highlightKeyCombination , moveFocus , noopKeyCombinationHandler ( [ container , element ] ) ) ;
139139 // Clear shouldFocusCard when focus is lost from the CardWrapper.
140140 // If we don't do this then card related for the focused highlight will be focused automatically.
@@ -144,7 +144,7 @@ function useFocusedHighlight(
144144}
145145
146146function CardsForHighlights ( {
147- highlights, container, focusedHighlight, shouldFocusCard, setShouldFocusCard, highlighter
147+ highlights, container, focusedHighlight, shouldFocusCard, setShouldFocusCard, highlighter,
148148} : {
149149 highlights : Highlight [ ] ;
150150 container : HTMLElement ;
0 commit comments