From e3330220439c380fe183ddf8dd95a7f751695030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Tue, 9 Oct 2018 23:02:07 +0200 Subject: [PATCH] Add international scancodes. Fixes #807. --- .../config-items/scancodes.json | 45 +++++++++++++++++++ .../src/app/services/mapper.service.ts | 5 +++ 2 files changed, 50 insertions(+) diff --git a/packages/uhk-common/src/config-serializer/config-items/scancodes.json b/packages/uhk-common/src/config-serializer/config-items/scancodes.json index 87fe4bd0..ccfac4dc 100644 --- a/packages/uhk-common/src/config-serializer/config-items/scancodes.json +++ b/packages/uhk-common/src/config-serializer/config-items/scancodes.json @@ -679,5 +679,50 @@ "text": "." } ] + }, + { + "text": "International", + "children": [ + { + "id": "235", + "text": "International 1", + "additional": { + "type": "basic", + "scancode": 135 + } + }, + { + "id": "236", + "text": "International 2", + "additional": { + "type": "basic", + "scancode": 136 + } + }, + { + "id": "237", + "text": "International 3", + "additional": { + "type": "basic", + "scancode": 137 + } + }, + { + "id": "244", + "text": "Language 1", + "additional": { + "type": "basic", + "scancode": 144 + } + }, + { + "id": "245", + "text": "Language 2", + "additional": { + "type": "basic", + "scancode": 145 + } + } + ] } ] diff --git a/packages/uhk-web/src/app/services/mapper.service.ts b/packages/uhk-web/src/app/services/mapper.service.ts index 04a9ee10..8583ab4d 100644 --- a/packages/uhk-web/src/app/services/mapper.service.ts +++ b/packages/uhk-web/src/app/services/mapper.service.ts @@ -305,6 +305,11 @@ export class MapperService { this.basicScanCodeTextMap.set(113, ['F22']); this.basicScanCodeTextMap.set(114, ['F23']); this.basicScanCodeTextMap.set(115, ['F24']); + this.basicScanCodeTextMap.set(135, ['Int1']); + this.basicScanCodeTextMap.set(136, ['Int2']); + this.basicScanCodeTextMap.set(137, ['Int3']); + this.basicScanCodeTextMap.set(144, ['Lang1']); + this.basicScanCodeTextMap.set(145, ['Lang2']); this.basicScanCodeTextMap.set(176, ['00']); this.basicScanCodeTextMap.set(177, ['000']);