Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Accessibility: keyboard navigation on the toolbar (Context menu) (#15060)
AHMAD KADRI8d82c2031913
diff --git a/react/features/base/config/functions.any.ts b/react/features/base/config/functions.any.tsindex 918b9eb7b9..53d4c96153 100644--- a/react/features/base/config/functions.any.ts+++ b/react/features/base/config/functions.any.ts@@ -381,3 +381,21 @@ export function getLegalUrls(state: IReduxState) {terms: configLegalUrls?.terms || DEFAULT_TERMS_URL};}++/**+ * Utility function to debounce the execution of a callback function.+ *+ * @param {Function} callback - The callback to debounce.+ * @param {number} delay - The debounce delay in milliseconds.+ * @returns {Function} - A debounced function that delays the execution of the callback.+ */+export function debounce(callback: (...args: any[]) => void, delay: number) {+ let timerId: any;++ return (...args: any[]) => {+ if (timerId) {+ clearTimeout(timerId);+ }+ timerId = setTimeout(() => callback(...args), delay);+ };+}diff --git a/react/features/settings/components/web/audio/AudioSettingsContent.tsx b/react/features/settings/components/web/audio/AudioSettingsContent.tsxindex e29f260a0e..d966190398 100644--- a/react/features/settings/components/web/audio/AudioSettingsContent.tsx+++ b/react/features/settings/components/web/audio/AudioSettingsContent.tsx@@ -281,6 +281,7 @@ const AudioSettingsContent = ({return (<ContextMenu+ activateFocusTrap = { true }aria-labelledby = 'audio-settings-button'className = { classes.contextMenu }hidden = { false }diff --git a/react/features/settings/components/web/video/VideoSettingsContent.tsx b/react/features/settings/components/web/video/VideoSettingsContent.tsxindex bfc0eee7dd..4084593dc2 100644--- a/react/features/settings/components/web/video/VideoSettingsContent.tsx+++ b/react/features/settings/components/web/video/VideoSettingsContent.tsx@@ -301,6 +301,7 @@ const VideoSettingsContent = ({return (<ContextMenu+ activateFocusTrap = { true }aria-labelledby = 'video-settings-button'className = { classes.container }hidden = { false }diff --git a/react/features/toolbox/components/web/DialogPortal.ts b/react/features/toolbox/components/web/DialogPortal.tsindex 21cad3f0ce..9a828947e6 100644--- a/react/features/toolbox/components/web/DialogPortal.ts+++ b/react/features/toolbox/components/web/DialogPortal.ts@@ -3,13 +3,14 @@ import ReactDOM from 'react-dom';import { useSelector } from 'react-redux';import { IReduxState } from '../../../app/types';+import { debounce } from '../../../base/config/functions.any';import { ZINDEX_DIALOG_PORTAL } from '../../constants';interface IProps {/**- * The component(s) to be displayed within the drawer portal.- */+ * The component(s) to be displayed within the drawer portal.+ */children: ReactNode;/**@@ -86,7 +87,7 @@ function DialogPortal({ children, className, style, getRef, setSize, targetSelecwidth: 1,height: 1};- const observer = new ResizeObserver(entries => {+ const debouncedResizeCallback = debounce((entries: ResizeObserverEntry[]) => {const { contentRect } = entries[0];if (contentRect.width !== size.width || contentRect.height !== size.height) {@@ -97,8 +98,10 @@ function DialogPortal({ children, className, style, getRef, setSize, targetSeleconVisible?.();}, 100);}- });+ }, 20); // 20ms delay+ // Create and observe ResizeObserver+ const observer = new ResizeObserver(debouncedResizeCallback);const target = targetSelector ? portalTarget.querySelector(targetSelector) : portalTarget;if (document.body) {