mirror of https://github.com/jetkvm/kvm.git
Wording...
This commit is contained in:
parent
f808d2692b
commit
87688a1a93
|
@ -332,18 +332,19 @@ export default function WebRTCVideo() {
|
||||||
// Example: If altKey is true, keep all modifiers
|
// Example: If altKey is true, keep all modifiers
|
||||||
// If altKey is false, filter out 0x04 (AltLeft)
|
// If altKey is false, filter out 0x04 (AltLeft)
|
||||||
//
|
//
|
||||||
// But intentionally do not filter out 0x40 (AltRight) to enable Alt Gr (Alt Graph)
|
// But intentionally do not filter out 0x40 (AltRight) to enable Alt Gr
|
||||||
// as a modifier. The altKey attribute is not set on key combinations involving the
|
// (Alt Graph) as a modifier. The `altKey` attribute is set to `false` on
|
||||||
// Alt Gr key, which means the modifier would otherwise unintentionally disappear
|
// key combinations involving the Alt Gr key, which means the modifier
|
||||||
// from the filteredModifiers list.
|
// would otherwise be unintentionally removed from the filteredModifiers
|
||||||
|
// list.
|
||||||
//
|
//
|
||||||
// For example, the KeyboardEvent for Alt Gr + 2 has the following structure:
|
// For example, the KeyboardEvent for Alt Gr + 2 has the following structure:
|
||||||
// - altKey: false
|
// - altKey: false
|
||||||
// - code: "Digit2"
|
// - code: "Digit2"
|
||||||
// - type: ["keydown" | "keyup"]
|
// - type: ["keydown" | "keyup"]
|
||||||
//
|
//
|
||||||
// Adding and removing 0x40 (AltRight) from and to the list of active modifiers is
|
// Adding and removing 0x40 (AltRight) from and to the list of active
|
||||||
// taken care of by the respective logic in the keyUpHandler an keyDownHandler.
|
// modifiers is handled by keyUpHandler an keyDownHandler.
|
||||||
.filter(
|
.filter(
|
||||||
modifier =>
|
modifier =>
|
||||||
altKey ||
|
altKey ||
|
||||||
|
|
Loading…
Reference in New Issue