mirror of https://github.com/jetkvm/kvm.git
105 lines
3.1 KiB
TypeScript
105 lines
3.1 KiB
TypeScript
import { KeyCombo } from "../keyboardLayouts"
|
|
|
|
export const chars = {
|
|
A: { key: "KeyA", shift: true },
|
|
B: { key: "KeyB", shift: true },
|
|
C: { key: "KeyC", shift: true },
|
|
D: { key: "KeyD", shift: true },
|
|
E: { key: "KeyE", shift: true },
|
|
F: { key: "KeyF", shift: true },
|
|
G: { key: "KeyG", shift: true },
|
|
H: { key: "KeyH", shift: true },
|
|
I: { key: "KeyI", shift: true },
|
|
J: { key: "KeyJ", shift: true },
|
|
K: { key: "KeyK", shift: true },
|
|
L: { key: "KeyL", shift: true },
|
|
M: { key: "KeyM", shift: true },
|
|
N: { key: "KeyN", shift: true },
|
|
O: { key: "KeyO", shift: true },
|
|
P: { key: "KeyP", shift: true },
|
|
Q: { key: "KeyQ", shift: true },
|
|
R: { key: "KeyR", shift: true },
|
|
S: { key: "KeyS", shift: true },
|
|
T: { key: "KeyT", shift: true },
|
|
U: { key: "KeyU", shift: true },
|
|
V: { key: "KeyV", shift: true },
|
|
W: { key: "KeyW", shift: true },
|
|
X: { key: "KeyX", shift: true },
|
|
Y: { key: "KeyY", shift: true },
|
|
Z: { key: "KeyZ", shift: true },
|
|
a: { key: "KeyA" },
|
|
b: { key: "KeyB" },
|
|
c: { key: "KeyC" },
|
|
d: { key: "KeyD" },
|
|
e: { key: "KeyE" },
|
|
f: { key: "KeyF" },
|
|
g: { key: "KeyG" },
|
|
h: { key: "KeyH" },
|
|
i: { key: "KeyI" },
|
|
j: { key: "KeyJ" },
|
|
k: { key: "KeyK" },
|
|
l: { key: "KeyL" },
|
|
m: { key: "KeyM" },
|
|
n: { key: "KeyN" },
|
|
o: { key: "KeyO" },
|
|
p: { key: "KeyP" },
|
|
q: { key: "KeyQ" },
|
|
r: { key: "KeyR" },
|
|
s: { key: "KeyS" },
|
|
t: { key: "KeyT" },
|
|
u: { key: "KeyU" },
|
|
v: { key: "KeyV" },
|
|
w: { key: "KeyW" },
|
|
x: { key: "KeyX" },
|
|
y: { key: "KeyY" },
|
|
z: { key: "KeyZ" },
|
|
1: { key: "Digit1" },
|
|
"!": { key: "Digit1", shift: true },
|
|
2: { key: "Digit2" },
|
|
"@": { key: "Digit2", shift: true },
|
|
3: { key: "Digit3" },
|
|
"#": { key: "Digit3", shift: true },
|
|
4: { key: "Digit4" },
|
|
$: { key: "Digit4", shift: true },
|
|
"%": { key: "Digit5", shift: true },
|
|
5: { key: "Digit5" },
|
|
"^": { key: "Digit6", shift: true },
|
|
6: { key: "Digit6" },
|
|
"&": { key: "Digit7", shift: true },
|
|
7: { key: "Digit7" },
|
|
"*": { key: "Digit8", shift: true },
|
|
8: { key: "Digit8" },
|
|
"(": { key: "Digit9", shift: true },
|
|
9: { key: "Digit9" },
|
|
")": { key: "Digit0", shift: true },
|
|
0: { key: "Digit0" },
|
|
"-": { key: "Minus" },
|
|
_: { key: "Minus", shift: true },
|
|
"=": { key: "Equal" },
|
|
"+": { key: "Equal", shift: true },
|
|
"'": { key: "Quote" },
|
|
'"': { key: "Quote", shift: true },
|
|
",": { key: "Comma" },
|
|
"<": { key: "Comma", shift: true },
|
|
"/": { key: "Slash" },
|
|
"?": { key: "Slash", shift: true },
|
|
".": { key: "Period" },
|
|
">": { key: "Period", shift: true },
|
|
";": { key: "Semicolon" },
|
|
":": { key: "Semicolon", shift: true },
|
|
"[": { key: "BracketLeft" },
|
|
"{": { key: "BracketLeft", shift: true },
|
|
"]": { key: "BracketRight" },
|
|
"}": { key: "BracketRight", shift: true },
|
|
"\\": { key: "Backslash" },
|
|
"|": { key: "Backslash", shift: true },
|
|
"`": { key: "Backquote" },
|
|
"~": { key: "Backquote", shift: true },
|
|
"§": { key: "IntlBackslash" },
|
|
"±": { key: "IntlBackslash", shift: true },
|
|
" ": { key: "Space" },
|
|
"\n": { key: "Enter" },
|
|
Enter: { key: "Enter" },
|
|
Tab: { key: "Tab" },
|
|
} as Record<string, KeyCombo>
|