Loading
Resolve "Standard components for preventing push to talk"
For reviewers:
The generalized logic for Space key handling is implemented in the usePreventSpaceKey hook
The hook is applied to the RoomPage component, as it's a parent for MeetingView, LobbyView, WaitingRoom, BreakoutRoom all views, which are relevant for the push-to-talk feature.
For QA:
This MR relates to Space button behavior inside the meeting room and lobby.
- If shortkey's are activated, no controlled element should be activated by pressing
Space. Means, It shouldn't be possible to push the buttons, change the state of the switches etc.. withSpace.Spaceshould only activate push-to-talk feature. User should be able to activate the controlled elements by Enter - If shortkeys are deactivated, than it should be possible to activate the contolled elements normally with the
Spacebutton.
Push-to-talk feature doesn't work in the lobby. For that a separate ticket has been created https://git.opentalk.dev/opentalk/frontend/web/web-app/-/issues/2421
Closes #2311
Edited by oleksii sukhodolskyi