Files
discord-decomp/_bundle/Module5760.js
T
2026-11-01 12:12:55 +02:00

434 lines
6.1 KiB
JavaScript

// Metro module 5760 (f5761).
import { Key } from "./Module5761";
const F6 = Key.F6;
const map = new Map([[Key.F6, "f6"], [Key.Tab, "tab"], [Key.ArrowDown, "down"], [Key.ArrowUp, "up"], [Key.ArrowLeft, "left"], [Key.ArrowRight, "right"], [Key.Home, "home"], [Key.End, "end"]]);
const set = new Set(["tab", "shift+tab", "down", "up", "left", "right", "home", "end"]);
const r13 = {
KEYBOARD_KEY: 0,
0: "KEYBOARD_KEY",
MOUSE_BUTTON: 1,
1: "MOUSE_BUTTON",
KEYBOARD_MODIFIER_KEY: 2,
2: "KEYBOARD_MODIFIER_KEY",
GAMEPAD_BUTTON: 3,
3: "GAMEPAD_BUTTON"
};
const r12 = Object.freeze({
esc: 9,
f1: 67,
f2: 68,
f3: 69,
f4: 70,
f5: 71,
f6: 72,
f7: 73,
f8: 74,
f9: 75,
f10: 76,
f11: 95,
f12: 96,
f14: 107,
f15: 78,
f16: 127,
"`": 49,
1: 10,
2: 11,
3: 12,
4: 13,
5: 14,
6: 15,
7: 16,
8: 17,
9: 18,
0: 19,
"-": 20,
"=": 21,
backspace: 22,
tab: 23,
q: 24,
w: 25,
e: 26,
r: 27,
t: 28,
y: 29,
u: 30,
i: 31,
o: 32,
p: 33,
"[": 34,
"]": 35,
"\\": 51,
"caps lock": 66,
a: 38,
s: 39,
d: 40,
f: 41,
g: 42,
h: 43,
j: 44,
k: 45,
l: 46,
";": 47,
"'": 48,
enter: 36,
shift: 50,
z: 52,
x: 53,
c: 54,
v: 55,
b: 56,
n: 57,
m: 58,
",": 59,
".": 60,
"/": 61,
"right shift": 62,
ctrl: 37,
alt: 64,
meta: 133,
space: 65,
"right meta": 134,
"right alt": 108,
"right ctrl": 105,
menu: 135,
"num lock": 77,
"numpad =": 125,
"numpad /": 106,
"numpad *": 63,
"numpad 7": 79,
"numpad 8": 80,
"numpad 9": 81,
"numpad -": 82,
"numpad 4": 83,
"numpad 5": 84,
"numpad 6": 85,
"numpad +": 86,
"numpad 1": 87,
"numpad 2": 88,
"numpad 3": 89,
"numpad enter": 104,
"numpad 0": 90,
"numpad .": 91,
home: 110,
"page up": 112,
end: 115,
"page down": 117,
insert: 118,
delete: 119,
left: 113,
right: 114,
down: 116,
up: 111,
sleep: 150,
back: 166,
forward: 167,
"home key": 180,
favorites: 164,
email: 163,
play: 172,
stop: 174,
"vol down": 122,
"vol up": 123,
"track back": 173,
"track skip": 171
});
const r95 = Object.freeze({
a: 4,
s: 22,
d: 7,
f: 9,
h: 11,
g: 10,
z: 29,
x: 27,
c: 6,
v: 25,
b: 5,
q: 20,
w: 26,
e: 8,
r: 21,
y: 28,
t: 23,
1: 30,
2: 31,
3: 32,
4: 33,
6: 35,
5: 34,
"=": 46,
9: 38,
7: 36,
"-": 45,
8: 37,
0: 39,
"]": 48,
o: 18,
u: 24,
"[": 47,
i: 12,
p: 19,
l: 15,
j: 13,
"'": 52,
k: 14,
";": 51,
"\\": 49,
",": 54,
"/": 56,
n: 17,
m: 16,
".": 55,
"`": 53,
"numpad .": 99,
"numpad *": 85,
"numpad +": 87,
"numpad clear": 83,
"numpad /": 84,
"numpad enter": 88,
"numpad -": 86,
"numpad =": 103,
"numpad 0": 98,
"numpad 1": 89,
"numpad 2": 90,
"numpad 3": 91,
"numpad 4": 92,
"numpad 5": 93,
"numpad 6": 94,
"numpad 7": 95,
"numpad 8": 96,
"numpad 9": 97,
enter: 40,
tab: 43,
space: 44,
backspace: 42,
esc: 41,
meta: 227,
cmd: 227,
shift: 225,
"caps lock": 57,
alt: 226,
ctrl: 224,
"right shift": 229,
"right alt": 230,
"right ctrl": 228,
"right meta": 231,
f17: 108,
f18: 109,
f19: 110,
f20: 111,
f21: 112,
f22: 113,
f23: 114,
f24: 115,
f5: 62,
f6: 63,
f7: 64,
f3: 60,
f8: 65,
f9: 66,
f11: 68,
f13: 104,
f16: 107,
f14: 105,
f10: 67,
f12: 69,
f15: 106,
home: 74,
"page up": 75,
del: 76,
f4: 61,
end: 77,
f2: 59,
"page down": 78,
f1: 58,
left: 80,
right: 79,
down: 81,
up: 82
});
const r104 = Object.freeze({
a: 65,
s: 83,
d: 68,
f: 70,
h: 72,
g: 71,
z: 90,
x: 88,
c: 67,
v: 86,
b: 66,
q: 81,
w: 87,
e: 69,
r: 82,
y: 89,
t: 84,
1: 49,
2: 50,
3: 51,
4: 52,
6: 54,
5: 53,
"=": 187,
9: 57,
7: 55,
"-": 189,
8: 56,
0: 48,
"]": 221,
o: 79,
u: 85,
"[": 219,
i: 73,
p: 80,
l: 76,
j: 74,
k: 75,
";": 186,
",": 188,
"/": 191,
n: 78,
m: 77,
".": 190,
"numpad .": 110,
"numpad *": 106,
"numpad +": 107,
"numpad clear": 144,
"numpad /": 111,
"numpad -": 109,
"numpad =": 226,
"numpad 0": 96,
"numpad 1": 97,
"numpad 2": 98,
"numpad 3": 99,
"numpad 4": 100,
"numpad 5": 101,
"numpad 6": 102,
"numpad 7": 103,
"numpad 8": 104,
"numpad 9": 105,
enter: 13,
tab: 9,
space: 32,
backspace: 8,
esc: 27,
meta: 91,
shift: 160,
"caps lock": 20,
alt: 164,
ctrl: 162,
"right shift": 161,
"right alt": 165,
"right ctrl": 163,
"right meta": 93,
f1: 112,
f2: 113,
f3: 114,
f4: 115,
f5: 116,
f6: 117,
f7: 118,
f8: 119,
f9: 120,
f10: 121,
f11: 122,
f12: 123,
f13: 124,
f14: 125,
f15: 126,
f16: 127,
f17: 128,
f18: 129,
f19: 130,
f20: 131,
f21: 132,
f22: 133,
f23: 134,
f24: 135,
home: 36,
"page up": 33,
del: 46,
end: 35,
"page down": 34,
left: 37,
right: 39,
down: 40,
up: 38,
insert: 45,
break: 19,
"scroll lock": 145,
"print screen": 44,
rewind: 177,
play: 179,
"fast forward": 176,
...Object.freeze({
"^": 220,
"§": 220,
"½": 220,
plus: 192,
"ž": 192,
"@": 192,
"|": 220,
"#": 222,
$: 222,
process: 229,
"·": 229,
"ذ": 192,
"`": 192,
"¬": 223,
"\\": 220,
"'": 222
})
});
const r105 = {
WINDOWS: 1,
1: "WINDOWS",
MACOS: 2,
2: "MACOS",
LINUX: 3,
3: "LINUX",
BROWSER: 4,
4: "BROWSER"
};
const r110 = {
ENTER: "Enter",
TAB: "Tab",
SPACE: " ",
ESCAPE: "Escape",
SHIFT: "Shift",
ARROW_UP: "ArrowUp",
ARROW_DOWN: "ArrowDown",
ARROW_LEFT: "ArrowLeft",
ARROW_RIGHT: "ArrowRight",
HOME: "Home",
END: "End",
BACKSPACE: "Backspace",
DELETE: "Delete",
COMMA: ","
};
const r125 = {
Left: 0,
0: "Left",
Right: 1,
1: "Right",
Center: 2,
2: "Center",
Back: 3,
3: "Back",
Forward: 4,
4: "Forward"
};
export const KeyboardEventKey = Key;
export { F6 as FOCUS_SECTION_JUMP_KEY };
export { map as NavigationKeyShortcutMap };
export { set as NavigationShortcuts };
export { r13 as KeyboardDeviceTypes };
export { r12 as LinuxKeyToCode };
export { r95 as MacosKeyToCode };
export { r104 as WindowsKeyToCode };
export { r105 as KeyboardEnvs };
export { r110 as KeyboardKeysUpdated };
export { r125 as MouseKeyCodes };