From 0fc847fa593c448a6864caa01cb1847687bced1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 13 Jun 2020 18:03:07 +0200 Subject: [PATCH] fix key codes --- client/src/neko/keyboard.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/neko/keyboard.ts b/client/src/neko/keyboard.ts index 2070f152..39b89c4a 100644 --- a/client/src/neko/keyboard.ts +++ b/client/src/neko/keyboard.ts @@ -6,12 +6,12 @@ const keyMap: Record = { 'ShiftRight': 0xFFE2, 'ControlLeft': 0xFFE3, 'ControlRight': 0xFFE4, - 'AltLeft': 0xFFE9, // 2 keys - one code? - 'AltRight': 0xFFE9, // 2 keys - one code? + 'AltLeft': 0xFFE9, + 'AltRight': 0xFFEA, 'MetaLeft': 0xFFEB, // Super key, or Meta key? - 'MetaRight': 0xFF67, // Super key, or Meta key? - //'PrintScreen': , - //'ContextMenu': , + 'MetaRight': 0xFFEC, // Super key, or Meta key? + 'PrintScreen': 0xFF61, + 'ContextMenu': 0xFF67, 'Pause': 0xFF13, 'CapsLock': 0xFFE5, 'Escape': 0xFF1B,