From 87688a1a93481aad959e47c229f9506d782b8ed5 Mon Sep 17 00:00:00 2001 From: Daniel Lorch Date: Sun, 4 May 2025 03:39:40 +0200 Subject: [PATCH] Wording... --- ui/src/components/WebRTCVideo.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ui/src/components/WebRTCVideo.tsx b/ui/src/components/WebRTCVideo.tsx index 33a65f9..a67d9b5 100644 --- a/ui/src/components/WebRTCVideo.tsx +++ b/ui/src/components/WebRTCVideo.tsx @@ -332,18 +332,19 @@ export default function WebRTCVideo() { // Example: If altKey is true, keep all modifiers // If altKey is false, filter out 0x04 (AltLeft) // - // But intentionally do not filter out 0x40 (AltRight) to enable Alt Gr (Alt Graph) - // as a modifier. The altKey attribute is not set on key combinations involving the - // Alt Gr key, which means the modifier would otherwise unintentionally disappear - // from the filteredModifiers list. + // But intentionally do not filter out 0x40 (AltRight) to enable Alt Gr + // (Alt Graph) as a modifier. The `altKey` attribute is set to `false` on + // key combinations involving the Alt Gr key, which means the modifier + // would otherwise be unintentionally removed from the filteredModifiers + // list. // // For example, the KeyboardEvent for Alt Gr + 2 has the following structure: // - altKey: false // - code: "Digit2" // - type: ["keydown" | "keyup"] // - // Adding and removing 0x40 (AltRight) from and to the list of active modifiers is - // taken care of by the respective logic in the keyUpHandler an keyDownHandler. + // Adding and removing 0x40 (AltRight) from and to the list of active + // modifiers is handled by keyUpHandler an keyDownHandler. .filter( modifier => altKey ||