Launch application scancodes (closes #328) (#331)

This commit is contained in:
Attila Csanyi
2017-07-07 10:10:38 +02:00
committed by László Monda
parent 67a55363da
commit e713c52df8
5 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by IcoMoon.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
<path fill="#000000" d="M14.5 16h-14c-0.276 0-0.5-0.224-0.5-0.5v-15c0-0.276 0.224-0.5 0.5-0.5h14c0.276 0 0.5 0.224 0.5 0.5v15c0 0.276-0.224 0.5-0.5 0.5zM1 15h13v-14h-13v14z"></path>
<path fill="#000000" d="M2 2h11v3h-11v-3z"></path>
<path fill="#000000" d="M2 6h2v2h-2v-2z"></path>
<path fill="#000000" d="M5 6h2v2h-2v-2z"></path>
<path fill="#000000" d="M8 6h2v2h-2v-2z"></path>
<path fill="#000000" d="M2 9h2v2h-2v-2z"></path>
<path fill="#000000" d="M5 9h2v2h-2v-2z"></path>
<path fill="#000000" d="M8 9h2v2h-2v-2z"></path>
<path fill="#000000" d="M2 12h2v2h-2v-2z"></path>
<path fill="#000000" d="M5 12h2v2h-2v-2z"></path>
<path fill="#000000" d="M8 12h2v2h-2v-2z"></path>
<path fill="#000000" d="M11 9h2v5h-2v-5z"></path>
<path fill="#000000" d="M11 6h2v2h-2v-2z"></path>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by IcoMoon.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
<path fill="#000000" d="M15 2h-14c-0.55 0-1 0.45-1 1v10c0 0.55 0.45 1 1 1h14c0.55 0 1-0.45 1-1v-10c0-0.55-0.45-1-1-1zM14 4v0.719l-6 3.536-6-3.536v-0.719h12zM2 12v-5.54l6 3.536 6-3.536v5.54h-12z"></path>
</svg>

After

Width:  |  Height:  |  Size: 522 B

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generated by IcoMoon.io -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
<path fill="#000000" d="M8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 15c-0.984 0-1.92-0.203-2.769-0.57l3.643-4.098c0.081-0.092 0.126-0.21 0.126-0.332v-1.5c0-0.276-0.224-0.5-0.5-0.5-1.765 0-3.628-1.835-3.646-1.854-0.094-0.094-0.221-0.146-0.354-0.146h-2c-0.276 0-0.5 0.224-0.5 0.5v3c0 0.189 0.107 0.363 0.276 0.447l1.724 0.862v2.936c-1.813-1.265-3-3.366-3-5.745 0-1.074 0.242-2.091 0.674-3h1.826c0.133 0 0.26-0.053 0.354-0.146l2-2c0.094-0.094 0.146-0.221 0.146-0.354v-1.21c0.634-0.189 1.305-0.29 2-0.29 1.1 0 2.141 0.254 3.067 0.706-0.065 0.055-0.128 0.112-0.188 0.172-0.567 0.567-0.879 1.32-0.879 2.121s0.312 1.555 0.879 2.121c0.569 0.569 1.332 0.879 2.119 0.879 0.049 0 0.099-0.001 0.149-0.004 0.216 0.809 0.605 2.917-0.131 5.818-0.007 0.027-0.011 0.055-0.013 0.082-1.271 1.298-3.042 2.104-5.002 2.104z"></path>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -508,6 +508,35 @@
}
]
},
{
"text": "Launch application",
"children": [
{
"id": "142",
"text": "Launch Web Browser",
"additional": {
"type": "media",
"scancode": 406
}
},
{
"id": "143",
"text": "Launch Email Client",
"additional": {
"type": "media",
"scancode": 394
}
},
{
"id": "144",
"text": "Launch Calculator",
"additional": {
"type": "media",
"scancode": 402
}
}
]
},
{
"text": "System",
"children": [

View File

@@ -219,6 +219,10 @@ export class MapperService {
this.mediaScanCodeTextMap.set(233, ['Vol +']);
this.mediaScanCodeTextMap.set(234, ['Vol -']);
this.mediaScanCodeTextMap.set(406, ['Launch Web Browser']);
this.mediaScanCodeTextMap.set(394, ['Launch Email Client']);
this.mediaScanCodeTextMap.set(402, ['Launch Calculator']);
this.sytemScanCodeTextMap = new Map<number, string[]>();
this.sytemScanCodeTextMap.set(129, ['Power Down']);
this.sytemScanCodeTextMap.set(130, ['Sleep']);
@@ -244,6 +248,10 @@ export class MapperService {
this.mediaScancodeIcons.set(233, 'icon-kbd__media--vol-up');
this.mediaScancodeIcons.set(234, 'icon-kbd__media--vol-down');
this.mediaScancodeIcons.set(406, 'icon-kbd__media--web-browser');
this.mediaScancodeIcons.set(394, 'icon-kbd__media--email-client');
this.mediaScancodeIcons.set(402, 'icon-kbd__media--calculator');
this.systemScancodeIcons = new Map<number, string>();
this.systemScancodeIcons.set(129, 'icon-kbd__system_power_down');
this.systemScancodeIcons.set(130, 'icon-kbd__system_sleep');