Open source video conferencing app powered by LiveKit. Built with Django and React.
💄(frontend) show OS-specific shortcut in participant tile hint
Cyrilbf32c073c6a7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 18cbbff7..c409e9c6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,6 +17,7 @@ and this project adheres to- 💄(custom-background) add upload indicator with preview #1183- ♿️(backend) improve logo accessibility in recording email notification #1092- ♿️(summary) improve accessibility of transcription download link #1187+- 💄(frontend) show OS-specific shortcut in participant tile hint #1193### Fixeddiff --git a/src/frontend/src/features/rooms/livekit/components/ParticipantTile.tsx b/src/frontend/src/features/rooms/livekit/components/ParticipantTile.tsxindex de6dab47..629e9980 100644--- a/src/frontend/src/features/rooms/livekit/components/ParticipantTile.tsx+++ b/src/frontend/src/features/rooms/livekit/components/ParticipantTile.tsx@@ -31,6 +31,8 @@ import { FullScreenShareWarning } from './FullScreenShareWarning'import { ParticipantName } from './ParticipantName'import { getParticipantName } from '@/features/rooms/utils/getParticipantName'import { useTranslation } from 'react-i18next'+import { getShortcutDescriptorById } from '@/features/shortcuts/catalog'+import { formatShortcutLabel } from '@/features/shortcuts/formatLabels'import { KeyboardShortcutHint } from './KeyboardShortcutHint'export function TrackRefContextIfNeeded(@@ -237,7 +239,13 @@ export const ParticipantTile: ()}</ParticipantContextIfNeeded></TrackRefContextIfNeeded>- <KeyboardShortcutHint>{t('toolbarHint')}</KeyboardShortcutHint>+ <KeyboardShortcutHint>+ {t('toolbarHint', {+ shortcut: formatShortcutLabel(+ getShortcutDescriptorById('open-shortcuts')?.shortcut+ ),+ })}+ </KeyboardShortcutHint></div>)})diff --git a/src/frontend/src/locales/de/rooms.json b/src/frontend/src/locales/de/rooms.jsonindex 9aff22bf..d393e9b8 100644--- a/src/frontend/src/locales/de/rooms.json+++ b/src/frontend/src/locales/de/rooms.json@@ -620,7 +620,7 @@},"participantTileFocus": {"containerLabel": "Optionen für {{name}}",- "toolbarHint": "Ctrl+Shift+/: Direkt auf die Tastenkürzel zugreifen.",+ "toolbarHint": "{{shortcut}}: Direkt auf die Tastenkürzel zugreifen.","pin": {"enable": "Anheften","disable": "Lösen"diff --git a/src/frontend/src/locales/en/rooms.json b/src/frontend/src/locales/en/rooms.jsonindex 85c3efef..24178269 100644--- a/src/frontend/src/locales/en/rooms.json+++ b/src/frontend/src/locales/en/rooms.json@@ -619,7 +619,7 @@},"participantTileFocus": {"containerLabel": "Options for {{name}}",- "toolbarHint": "Ctrl+Shift+/: access shortcuts directly.",+ "toolbarHint": "{{shortcut}}: access shortcuts directly.","pin": {"enable": "Pin","disable": "Unpin"diff --git a/src/frontend/src/locales/fr/rooms.json b/src/frontend/src/locales/fr/rooms.jsonindex 02f0a21f..bbde7e7b 100644--- a/src/frontend/src/locales/fr/rooms.json+++ b/src/frontend/src/locales/fr/rooms.json@@ -619,7 +619,7 @@},"participantTileFocus": {"containerLabel": "Options pour {{name}}",- "toolbarHint": "Ctrl+Shift+/ : accéder directement aux raccourcis.",+ "toolbarHint": "{{shortcut}} : accéder directement aux raccourcis.","pin": {"enable": "Épingler","disable": "Annuler l'épinglage"diff --git a/src/frontend/src/locales/nl/rooms.json b/src/frontend/src/locales/nl/rooms.jsonindex b6364333..a6ab507c 100644--- a/src/frontend/src/locales/nl/rooms.json+++ b/src/frontend/src/locales/nl/rooms.json@@ -619,7 +619,7 @@},"participantTileFocus": {"containerLabel": "Opties voor {{name}}",- "toolbarHint": "Ctrl+Shift+/: direct toegang tot de sneltoetsen.",+ "toolbarHint": "{{shortcut}}: direct toegang tot de sneltoetsen.","pin": {"enable": "Pinnen","disable": "Losmaken"