Move feedback button to overflow menu
To be consistent with normal view and avoid nested dialogs. Also disable space for the PTT key when the feedback dialog is visible, since otherwise you can't type a space. Involves some rearrangement of modal state. Remove accidentally comitted vite port config.
This commit is contained in:
@@ -37,7 +37,8 @@ export const usePTT = (
|
||||
client: MatrixClient,
|
||||
groupCall: GroupCall,
|
||||
userMediaFeeds: CallFeed[],
|
||||
playClip: PlayClipFunction
|
||||
playClip: PlayClipFunction,
|
||||
enablePTTButton: boolean
|
||||
): PTTState => {
|
||||
const [
|
||||
{
|
||||
@@ -162,6 +163,8 @@ export const usePTT = (
|
||||
useEffect(() => {
|
||||
function onKeyDown(event: KeyboardEvent): void {
|
||||
if (event.code === "Space") {
|
||||
if (!enablePTTButton) return;
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
if (pttButtonHeld) return;
|
||||
@@ -204,6 +207,7 @@ export const usePTT = (
|
||||
isAdmin,
|
||||
talkOverEnabled,
|
||||
pttButtonHeld,
|
||||
enablePTTButton,
|
||||
]);
|
||||
|
||||
const setTalkOverEnabled = useCallback((talkOverEnabled) => {
|
||||
|
||||
Reference in New Issue
Block a user