From 37ae30882576dc592cdfba6e7ffdc22f65a819d4 Mon Sep 17 00:00:00 2001 From: Cyril Date: Mon, 13 Jul 2026 16:03:12 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BF=EF=B8=8F(frontend)=20add=20wheel=20zo?= =?UTF-8?q?om=20shortcut=20hints=20to=20screen=20share=20controls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show Ctrl/Cmd+scroll zoom shortcut in tooltips, aria, SR hints, w/ en/fr/nl/de. --- .../livekit/components/ScreenShareZoomControls.tsx | 11 +++++++++-- src/frontend/src/locales/de/rooms.json | 6 ++++++ src/frontend/src/locales/en/rooms.json | 6 ++++++ src/frontend/src/locales/fr/rooms.json | 6 ++++++ src/frontend/src/locales/nl/rooms.json | 6 ++++++ 5 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx index 7a0e8fab5..59af53827 100644 --- a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx +++ b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx @@ -7,6 +7,8 @@ import { RiZoomOutLine, } from '@remixicon/react' import { useTranslation } from 'react-i18next' +import { isMacintosh } from '@/utils/livekit' +import { srOnly } from '@/styles/a11y' import { ScreenShareFullscreenButton } from './ScreenShareFullscreenButton' interface ScreenShareZoomControlsProps { @@ -32,6 +34,8 @@ export const ScreenShareZoomControls = ({ }: ScreenShareZoomControlsProps) => { const { t } = useTranslation('rooms', { keyPrefix: 'screenShareZoom' }) + const wheelShortcut = t(isMacintosh() ? 'wheelShortcutMac' : 'wheelShortcut') + return (
+ + {t(isMacintosh() ? 'wheelShortcutHintMac' : 'wheelShortcutHint')} + {isZoomed && ( <>