summaryrefslogtreecommitdiff
path: root/kvmd/keymap.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-03-20 03:07:27 +0300
committerDevaev Maxim <[email protected]>2020-03-20 03:07:27 +0300
commitd5ae32b1326fc5ac9207193d7679b34e0ceec4c7 (patch)
tree43bb961fd3006c06dffec900a2c84fb8387302c0 /kvmd/keymap.py
parentab6264bd5e65497121139eab6deae353e06d592f (diff)
vnc
Diffstat (limited to 'kvmd/keymap.py')
-rw-r--r--kvmd/keymap.py232
1 files changed, 232 insertions, 0 deletions
diff --git a/kvmd/keymap.py b/kvmd/keymap.py
index a263ea01..6e466f2f 100644
--- a/kvmd/keymap.py
+++ b/kvmd/keymap.py
@@ -398,3 +398,235 @@ KEYMAP: Dict[str, Key] = {
otg=OtgKey(code=101, is_modifier=False),
),
}
+
+
+# =====
+X11_TO_AT1 = {
+ 65307: 1,
+ 33: 2,
+ 49: 2,
+ 50: 3,
+ 64: 3,
+ 35: 4,
+ 51: 4,
+ 36: 5,
+ 52: 5,
+ 37: 6,
+ 53: 6,
+ 54: 7,
+ 94: 7,
+ 38: 8,
+ 55: 8,
+ 42: 9,
+ 56: 9,
+ 40: 10,
+ 57: 10,
+ 41: 11,
+ 48: 11,
+ 45: 12,
+ 95: 12,
+ 43: 13,
+ 61: 13,
+ 65288: 14,
+ 65289: 15,
+ 81: 16,
+ 113: 16,
+ 87: 17,
+ 119: 17,
+ 69: 18,
+ 101: 18,
+ 82: 19,
+ 114: 19,
+ 84: 20,
+ 116: 20,
+ 89: 21,
+ 121: 21,
+ 85: 22,
+ 117: 22,
+ 73: 23,
+ 105: 23,
+ 79: 24,
+ 111: 24,
+ 80: 25,
+ 112: 25,
+ 91: 26,
+ 123: 26,
+ 93: 27,
+ 125: 27,
+ 65293: 28,
+ 65507: 29,
+ 65: 30,
+ 97: 30,
+ 83: 31,
+ 115: 31,
+ 68: 32,
+ 100: 32,
+ 70: 33,
+ 102: 33,
+ 71: 34,
+ 103: 34,
+ 72: 35,
+ 104: 35,
+ 74: 36,
+ 106: 36,
+ 75: 37,
+ 107: 37,
+ 76: 38,
+ 108: 38,
+ 58: 39,
+ 59: 39,
+ 34: 40,
+ 39: 40,
+ 96: 41,
+ 126: 41,
+ 65505: 42,
+ 92: 43,
+ 124: 43,
+ 90: 44,
+ 122: 44,
+ 88: 45,
+ 120: 45,
+ 67: 46,
+ 99: 46,
+ 86: 47,
+ 118: 47,
+ 66: 48,
+ 98: 48,
+ 78: 49,
+ 110: 49,
+ 77: 50,
+ 109: 50,
+ 44: 51,
+ 60: 51,
+ 46: 52,
+ 62: 52,
+ 47: 53,
+ 63: 53,
+ 65506: 54,
+ 65513: 56,
+ 32: 57,
+ 65509: 58,
+ 65470: 59,
+ 65471: 60,
+ 65472: 61,
+ 65473: 62,
+ 65474: 63,
+ 65475: 64,
+ 65476: 65,
+ 65477: 66,
+ 65478: 67,
+ 65479: 68,
+ 65407: 69,
+ 65300: 70,
+ 65301: 84,
+ 65480: 87,
+ 65481: 88,
+ 65508: 57373,
+ 65514: 57400,
+ 65299: 57414,
+ 65360: 57415,
+ 65362: 57416,
+ 65365: 57417,
+ 65361: 57419,
+ 65363: 57421,
+ 65367: 57423,
+ 65364: 57424,
+ 65366: 57425,
+ 65379: 57426,
+ 65535: 57427,
+ 65511: 57435,
+ 65512: 57436,
+ 65383: 57437,
+}
+
+
+AT1_TO_WEB = {
+ 1: "Escape",
+ 2: "Digit1",
+ 3: "Digit2",
+ 4: "Digit3",
+ 5: "Digit4",
+ 6: "Digit5",
+ 7: "Digit6",
+ 8: "Digit7",
+ 9: "Digit8",
+ 10: "Digit9",
+ 11: "Digit0",
+ 12: "Minus",
+ 13: "Equal",
+ 14: "Backspace",
+ 15: "Tab",
+ 16: "KeyQ",
+ 17: "KeyW",
+ 18: "KeyE",
+ 19: "KeyR",
+ 20: "KeyT",
+ 21: "KeyY",
+ 22: "KeyU",
+ 23: "KeyI",
+ 24: "KeyO",
+ 25: "KeyP",
+ 26: "BracketLeft",
+ 27: "BracketRight",
+ 28: "Enter",
+ 29: "ControlLeft",
+ 30: "KeyA",
+ 31: "KeyS",
+ 32: "KeyD",
+ 33: "KeyF",
+ 34: "KeyG",
+ 35: "KeyH",
+ 36: "KeyJ",
+ 37: "KeyK",
+ 38: "KeyL",
+ 39: "Semicolon",
+ 40: "Quote",
+ 41: "Backquote",
+ 42: "ShiftLeft",
+ 43: "Backslash",
+ 44: "KeyZ",
+ 45: "KeyX",
+ 46: "KeyC",
+ 47: "KeyV",
+ 48: "KeyB",
+ 49: "KeyN",
+ 50: "KeyM",
+ 51: "Comma",
+ 52: "Period",
+ 53: "Slash",
+ 54: "ShiftRight",
+ 56: "AltLeft",
+ 57: "Space",
+ 58: "CapsLock",
+ 59: "F1",
+ 60: "F2",
+ 61: "F3",
+ 62: "F4",
+ 63: "F5",
+ 64: "F6",
+ 65: "F7",
+ 66: "F8",
+ 67: "F9",
+ 68: "F10",
+ 69: "NumLock",
+ 70: "ScrollLock",
+ 84: "PrintScreen",
+ 87: "F11",
+ 88: "F12",
+ 57373: "ControlRight",
+ 57400: "AltRight",
+ 57414: "Pause",
+ 57415: "Home",
+ 57416: "ArrowUp",
+ 57417: "PageUp",
+ 57419: "ArrowLeft",
+ 57421: "ArrowRight",
+ 57423: "End",
+ 57424: "ArrowDown",
+ 57425: "PageDown",
+ 57426: "Insert",
+ 57427: "Delete",
+ 57435: "MetaLeft",
+ 57436: "MetaRight",
+ 57437: "ContextMenu",
+}