Skip to content

Commit 24d26e9

Browse files
committed
CORE_1319
Update CardWrapper.tsx
1 parent 6dfacd4 commit 24d26e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/content/highlights/components/CardWrapper.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function useCardsHeights() {
9191
function 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

146146
function 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

Comments
 (0)