From 620e860474fb58210827eb2adf6cdffec17458d7 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(frontend)=20add=20wheel=20zoom=20shor?= =?UTF-8?q?tcut=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. --- .../components/ScreenShareZoomControls.tsx | 18 ++++++++++++++---- 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, 38 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx index 0e9458da..51bba8ff 100644 --- a/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx +++ b/src/frontend/src/features/rooms/livekit/components/ScreenShareZoomControls.tsx @@ -11,6 +11,8 @@ import { import { useTranslation } from 'react-i18next' import { useCallback, useEffect, useRef, useState } from 'react' import { useScreenReaderAnnounce } from '@/hooks/useScreenReaderAnnounce' +import { isMacintosh } from '@/utils/livekit' +import { srOnly } from '@/styles/a11y' interface ScreenShareZoomControlsProps { containerRef: React.RefObject @@ -76,6 +78,11 @@ export const ScreenShareZoomControls = ({ } }, [containerRef]) + const wheelShortcutVisual = isMacintosh() ? '⌘+scroll' : 'Ctrl+scroll' + const wheelShortcutSR = t( + isMacintosh() ? 'wheelShortcutMac' : 'wheelShortcut' + ) + return (
+ + {t(isMacintosh() ? 'wheelShortcutHintMac' : 'wheelShortcutHint')} + {isZoomed && ( <>