In #218, @growthepie added some initial support for keyboard shortcuts in review sessions. We'll want that same support in the React Native apps, particularly the desktop app.
React Native does implement the onkeydown event on View, but our implementation of useKeyDown creates a global handler by adding the event handler to document. That won't work on React Native, so we'll need to either create some coordination at the root level (maybe with a Context or something), or else use something like react-native-keyevent which offers more control.
In #218, @growthepie added some initial support for keyboard shortcuts in review sessions. We'll want that same support in the React Native apps, particularly the desktop app.
React Native does implement the
onkeydown
event onView
, but our implementation ofuseKeyDown
creates a global handler by adding the event handler todocument
. That won't work on React Native, so we'll need to either create some coordination at the root level (maybe with aContext
or something), or else use something like react-native-keyevent which offers more control.