From f68e8f258b64404403bf39611331888ca1923385 Mon Sep 17 00:00:00 2001 From: Amir Ghezelbash Date: Thu, 13 Feb 2025 16:21:16 +0300 Subject: [PATCH] fix: Exclude emoji search input when disabling typing in full screen calls (WPB-16133) --- src/script/components/calling/FullscreenVideoCall.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/script/components/calling/FullscreenVideoCall.tsx b/src/script/components/calling/FullscreenVideoCall.tsx index 1ac915412d6..12699b5963a 100644 --- a/src/script/components/calling/FullscreenVideoCall.tsx +++ b/src/script/components/calling/FullscreenVideoCall.tsx @@ -205,7 +205,12 @@ const FullscreenVideoCall = ({ useEffect(() => { const onKeyDown = (event: KeyboardEvent): void => { - if (viewMode !== CallingViewMode.FULL_SCREEN) { + const target = event.target as HTMLElement; + + if ( + viewMode !== CallingViewMode.FULL_SCREEN || + target?.getAttribute('aria-controls') === 'epr-search-id' // Exclude emoji search input + ) { return; }