diff --git a/src/useCallViewKeyboardShortcuts.test.tsx b/src/useCallViewKeyboardShortcuts.test.tsx index b002c23e9..fddba5039 100644 --- a/src/useCallViewKeyboardShortcuts.test.tsx +++ b/src/useCallViewKeyboardShortcuts.test.tsx @@ -18,6 +18,7 @@ import { ReactionsRowSize, } from "./reactions"; import { type Controls } from "./controls"; +import { RootElementProvider } from "./RootElementContext"; // Test Explanation: // - The main objective is to test `useCallViewKeyboardShortcuts`. @@ -48,10 +49,11 @@ const TestComponent: FC = ({ ); return ( <> -
+
- {/*// modal lives outside of the root*/} + {/* A dialog, which is what claims key presses for itself; where it + lives in the DOM does not matter */} {modalOpen && ( { // container element that can be interactive and receive focus / keydown // events.