Fix menu scancode. (#586)
* Fix menu scancode. * Change the old menu key scancode 118 to 101. * validate scancodes
This commit is contained in:
@@ -94,7 +94,7 @@ export class CaptureService {
|
||||
this.mapping.set(88, 27); // X
|
||||
this.mapping.set(89, 28); // Y
|
||||
this.mapping.set(90, 29); // Z
|
||||
this.mapping.set(93, 118); // Menu
|
||||
this.mapping.set(93, 101); // Menu
|
||||
this.mapping.set(96, 98); // Num pad 0
|
||||
this.mapping.set(97, 89); // Num pad 1
|
||||
this.mapping.set(98, 90); // Num pad 2
|
||||
|
||||
@@ -190,6 +190,7 @@ export class MapperService {
|
||||
this.basicScanCodeTextMap.set(98, ['Insert', '0']);
|
||||
this.basicScanCodeTextMap.set(99, ['Del', '.']);
|
||||
this.basicScanCodeTextMap.set(100, ['ISO key', '|']);
|
||||
this.basicScanCodeTextMap.set(101, ['Menu']);
|
||||
this.basicScanCodeTextMap.set(104, ['F13']);
|
||||
this.basicScanCodeTextMap.set(105, ['F14']);
|
||||
this.basicScanCodeTextMap.set(106, ['F15']);
|
||||
@@ -202,7 +203,6 @@ export class MapperService {
|
||||
this.basicScanCodeTextMap.set(113, ['F22']);
|
||||
this.basicScanCodeTextMap.set(114, ['F23']);
|
||||
this.basicScanCodeTextMap.set(115, ['F24']);
|
||||
this.basicScanCodeTextMap.set(118, ['Menu']);
|
||||
this.basicScanCodeTextMap.set(176, ['00']);
|
||||
this.basicScanCodeTextMap.set(177, ['000']);
|
||||
|
||||
@@ -236,7 +236,7 @@ export class MapperService {
|
||||
this.basicScancodeIcons.set(80, 'icon-kbd__mod--arrow-left');
|
||||
this.basicScancodeIcons.set(81, 'icon-kbd__mod--arrow-down');
|
||||
this.basicScancodeIcons.set(82, 'icon-kbd__mod--arrow-up');
|
||||
this.basicScancodeIcons.set(118, 'icon-kbd__mod--menu');
|
||||
this.basicScancodeIcons.set(101, 'icon-kbd__mod--menu');
|
||||
|
||||
this.mediaScancodeIcons = new Map<number, string>();
|
||||
this.mediaScancodeIcons.set(138, 'icon-kbd__fn--browser');
|
||||
|
||||
@@ -495,7 +495,7 @@
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
"type": "basic",
|
||||
"scancode": 118
|
||||
"scancode": 101
|
||||
},
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
@@ -1501,7 +1501,7 @@
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
"type": "basic",
|
||||
"scancode": 118
|
||||
"scancode": 101
|
||||
},
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
@@ -2517,7 +2517,7 @@
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
"type": "basic",
|
||||
"scancode": 118
|
||||
"scancode": 101
|
||||
},
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
@@ -3520,7 +3520,7 @@
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
"type": "basic",
|
||||
"scancode": 118
|
||||
"scancode": 101
|
||||
},
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
@@ -4533,7 +4533,7 @@
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
"type": "basic",
|
||||
"scancode": 118
|
||||
"scancode": 101
|
||||
},
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
@@ -5534,7 +5534,7 @@
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
"type": "basic",
|
||||
"scancode": 118
|
||||
"scancode": 101
|
||||
},
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
@@ -6547,7 +6547,7 @@
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
"type": "basic",
|
||||
"scancode": 118
|
||||
"scancode": 101
|
||||
},
|
||||
{
|
||||
"keyActionType": "keystroke",
|
||||
|
||||
Reference in New Issue
Block a user