mirror of https://github.com/jetkvm/kvm.git
Fix: Alt-Gr not recognized
This commit is contained in:
parent
d79f359c43
commit
fd06797124
|
@ -330,11 +330,11 @@ export default function WebRTCVideo() {
|
||||||
)
|
)
|
||||||
// Alt: Keep if Alt is pressed or if the key isn't an Alt key
|
// Alt: Keep if Alt is pressed or if the key isn't an Alt key
|
||||||
// Example: If altKey is true, keep all modifiers
|
// Example: If altKey is true, keep all modifiers
|
||||||
// If altKey is false, filter out 0x04 (AltLeft) and 0x40 (AltRight)
|
// If altKey is false, filter out 0x04 (AltLeft) and 0x40 (AltGraph)
|
||||||
.filter(
|
.filter(
|
||||||
modifier =>
|
modifier =>
|
||||||
altKey ||
|
altKey ||
|
||||||
(modifier !== modifiers["AltLeft"] && modifier !== modifiers["AltRight"]),
|
(modifier !== modifiers["AltLeft"] && modifier !== modifiers["AltGraph"]),
|
||||||
)
|
)
|
||||||
// Meta: Keep if Meta is pressed or if the key isn't a Meta key
|
// Meta: Keep if Meta is pressed or if the key isn't a Meta key
|
||||||
// Example: If metaKey is true, keep all modifiers
|
// Example: If metaKey is true, keep all modifiers
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
export const keys = {
|
export const keys = {
|
||||||
AltLeft: 0xe2,
|
|
||||||
AltRight: 0xe6,
|
|
||||||
ArrowDown: 0x51,
|
ArrowDown: 0x51,
|
||||||
ArrowLeft: 0x50,
|
ArrowLeft: 0x50,
|
||||||
ArrowRight: 0x4f,
|
ArrowRight: 0x4f,
|
||||||
|
|
Loading…
Reference in New Issue