diff --git a/.gitignore b/.gitignore
index 51496cb3..a4027376 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ typings
build
bundle
css
+.idea
+*.iml
diff --git a/index.html b/index.html
index 37a2bfed..11f430ed 100644
--- a/index.html
+++ b/index.html
@@ -6,9 +6,9 @@
@@ -28,11 +28,12 @@ import {SwitchKeymapAction} from '../../../../config-serializer/config-items/Swi
`,
styles: [require('./keymap-tab.component.scss')],
- directives: [SvgKeyboardComponent]
+ directives: [SvgKeyboardComponent, SELECT2_DIRECTIVES]
})
export class KeymapTabComponent implements OnInit, KeyActionSaver {
private keymaps: Keymap[];
+ private keymapOptions: Array
= [];
private selectedKeymapIndex: number;
constructor(private uhkConfigurationService: UhkConfigurationService) {
@@ -42,6 +43,22 @@ export class KeymapTabComponent implements OnInit, KeyActionSaver {
ngOnInit() {
this.keymaps = this.uhkConfigurationService.getUhkConfiguration().keymaps.elements;
+
+ this.keymapOptions.push({
+ id: '-1',
+ text: 'Switch to keymap'
+ });
+
+ this.keymapOptions = this.keymapOptions.concat(this.keymaps.map(function(keymap: Keymap): OptionData {
+ return {
+ id: keymap.id.toString(),
+ text: keymap.name
+ };
+ }));
+ }
+
+ onChange(event) {
+ this.selectedKeymapIndex = parseInt(event.value, 10);
}
keyActionValid(): boolean {
@@ -56,5 +73,4 @@ export class KeymapTabComponent implements OnInit, KeyActionSaver {
keymapAction.keymapId = this.keymaps[this.selectedKeymapIndex].id;
return keymapAction;
}
-
}
diff --git a/src/components/popover/tab/keypress-tab.component.scss b/src/components/popover/tab/keypress-tab.component.scss
index 0318d526..36863e60 100644
--- a/src/components/popover/tab/keypress-tab.component.scss
+++ b/src/components/popover/tab/keypress-tab.component.scss
@@ -8,6 +8,8 @@
b {
margin-right: 0.6em;
+ align-items: center;
+ display: flex;
}
.secondary-role {
diff --git a/src/components/popover/tab/keypress-tab.component.ts b/src/components/popover/tab/keypress-tab.component.ts
index ea97e2b9..59707c1b 100644
--- a/src/components/popover/tab/keypress-tab.component.ts
+++ b/src/components/popover/tab/keypress-tab.component.ts
@@ -10,6 +10,9 @@ import { KeyActionSaver } from '../key-action-saver';
import {IconComponent} from '../widgets/icon.component';
+import {SELECT2_DIRECTIVES} from 'ng2-select2/dist/ng2-select2';
+import {OptionData} from 'ng2-select2/dist/select2';
+
@Component({
moduleId: module.id,
selector: 'keypress-tab',
@@ -17,13 +20,7 @@ import {IconComponent} from '../widgets/icon.component';
`
Scancode:
-
+
@@ -43,29 +40,12 @@ import {IconComponent} from '../widgets/icon.component';
Long press action:
-
+
`,
styles: [require('./keypress-tab.component.scss')],
- directives: [CaptureKeystrokeButtonComponent, IconComponent]
+ directives: [CaptureKeystrokeButtonComponent, IconComponent, SELECT2_DIRECTIVES]
})
export class KeypressTabComponent implements OnInit, KeyActionSaver {
private leftModifiers: string[];
@@ -74,15 +54,14 @@ export class KeypressTabComponent implements OnInit, KeyActionSaver {
private leftModifierSelects: boolean[];
private rightModifierSelects: boolean[];
- private scancodeGroups: {
- groupName: string;
- groupValues: any[];
- }[];
+ private scanCodeGroups: Array;
+ private longPressGroups: Array;
constructor() {
this.leftModifiers = ['LShift', 'LCtrl', 'LSuper', 'LAlt'];
this.rightModifiers = ['RShift', 'RCtrl', 'RSuper', 'RAlt'];
- this.scancodeGroups = require('json!./scancodes.json');
+ this.scanCodeGroups = require('json!./scancodes.json');
+ this.longPressGroups = require('json!./longPress.json');
}
ngOnInit() { }
@@ -98,4 +77,22 @@ export class KeypressTabComponent implements OnInit, KeyActionSaver {
toKeyAction(): KeyAction {
return undefined;
}
+
+ scanCodeTemplateResult: Function = (state: any) => {
+ if (!state.id) {
+ return state.text;
+ }
+
+ if (state.additional && state.additional.explanation) {
+ return jQuery(
+ ''
+ + state.text
+ + ' '
+ + state.additional.explanation
+ + ''
+ );
+ } else {
+ return jQuery('' + state.text + '');
+ }
+ }
}
diff --git a/src/components/popover/tab/layer-tab.component.scss b/src/components/popover/tab/layer-tab.component.scss
index f57f678b..e885e076 100644
--- a/src/components/popover/tab/layer-tab.component.scss
+++ b/src/components/popover/tab/layer-tab.component.scss
@@ -1,7 +1,11 @@
:host {
display: flex;
+ margin: 0 -5px;
- span {
+ > span,
+ > select2 {
margin: 0 5px;
+ display: flex;
+ align-items: center;
}
}
diff --git a/src/components/popover/tab/layer-tab.component.ts b/src/components/popover/tab/layer-tab.component.ts
index e213f780..01a9c92a 100644
--- a/src/components/popover/tab/layer-tab.component.ts
+++ b/src/components/popover/tab/layer-tab.component.ts
@@ -1,33 +1,59 @@
import { Component, OnInit } from '@angular/core';
+import {NgSwitch, NgSwitchWhen, NgSwitchDefault } from '@angular/common';
+
import { LayerName, SwitchLayerAction } from '../../../../config-serializer/config-items/SwitchLayerAction';
import { KeyActionSaver } from '../key-action-saver';
+import {SELECT2_DIRECTIVES} from 'ng2-select2/dist/ng2-select2';
+import {OptionData} from 'ng2-select2/dist/select2';
+
@Component({
moduleId: module.id,
selector: 'layer-tab',
template:
`
-
+
the
-
-
- layer by holding this key.
+
+
+ layer by pressing this key.
+ layer by holding this key.
`,
- styles: [require('./layer-tab.component.scss')]
+ styles: [require('./layer-tab.component.scss')],
+ directives: [SELECT2_DIRECTIVES, NgSwitch, NgSwitchWhen, NgSwitchDefault]
})
export class LayerTabComponent implements OnInit, KeyActionSaver {
private toggle: boolean;
private layer: LayerName;
+ private toggleData: Array = [
+ {
+ id: 'false',
+ text: 'Activate'
+ },
+ {
+ id: 'true',
+ text: 'Toggle'
+ }
+ ];
+
+ private layerData: Array = [
+ {
+ id: '0',
+ text: 'Mod'
+ },
+ {
+ id: '1',
+ text: 'Fn'
+ },
+ {
+ id: '2',
+ text: 'Mouse'
+ }
+ ];
+
constructor() {
this.toggle = false;
this.layer = LayerName.mod;
@@ -46,4 +72,11 @@ export class LayerTabComponent implements OnInit, KeyActionSaver {
return keyAction;
}
+ private toggleChanged(event) {
+ this.toggle = event.value;
+ }
+
+ private layerChanged(event) {
+ this.layer = event.value;
+ }
}
diff --git a/src/components/popover/tab/longPress.json b/src/components/popover/tab/longPress.json
new file mode 100644
index 00000000..c405f5b1
--- /dev/null
+++ b/src/components/popover/tab/longPress.json
@@ -0,0 +1,60 @@
+[
+ {
+ "id": "none",
+ "text": "None"
+ },
+ {
+ "text": "Modifiers",
+ "children": [
+ {
+ "id": "LShift",
+ "text": "LShift"
+ },
+ {
+ "id": "LCtrl",
+ "text": "LCtrl"
+ },
+ {
+ "id": "LSuper",
+ "text": "LSuper"
+ },
+ {
+ "id": "LAlt",
+ "text": "LAlt"
+ },
+ {
+ "id": "RShift",
+ "text": "RShift"
+ },
+ {
+ "id": "RCtrl",
+ "text": "RCtrl"
+ },
+ {
+ "id": "RSuper",
+ "text": "RSuper"
+ },
+ {
+ "id": "RAlt",
+ "text": "RAlt"
+ }
+ ]
+ },
+ {
+ "text": "Layer switcher",
+ "children": [
+ {
+ "id": "Mod",
+ "text": "Mod"
+ },
+ {
+ "id": "Mouse",
+ "text": "Mouse"
+ },
+ {
+ "id": "Fn",
+ "text": "Fn"
+ }
+ ]
+ }
+]
diff --git a/src/components/popover/tab/macro-tab.component.scss b/src/components/popover/tab/macro-tab.component.scss
index 1f663b4c..94a91b20 100644
--- a/src/components/popover/tab/macro-tab.component.scss
+++ b/src/components/popover/tab/macro-tab.component.scss
@@ -7,10 +7,12 @@
margin-top: 2px;
b {
+ display: flex;
+ align-items: center;
margin-right: 7px;
}
- select {
+ select2 {
flex: 1;
}
}
diff --git a/src/components/popover/tab/macro-tab.component.ts b/src/components/popover/tab/macro-tab.component.ts
index a82c0552..a53b4dbc 100644
--- a/src/components/popover/tab/macro-tab.component.ts
+++ b/src/components/popover/tab/macro-tab.component.ts
@@ -7,17 +7,16 @@ import { PlayMacroAction } from '../../../../config-serializer/config-items/Play
import { KeyActionSaver } from '../key-action-saver';
import { MacroItemComponent } from './macro-item.component';
+import {SELECT2_DIRECTIVES} from 'ng2-select2/dist/ng2-select2';
+import {OptionData} from 'ng2-select2/dist/select2';
+
@Component({
moduleId: module.id,
selector: 'macro-tab',
- template:
- `
+ template: `
Play macro:
-
+
= 0">
@@ -28,11 +27,12 @@ import { MacroItemComponent } from './macro-item.component';
`,
styles: [require('./macro-tab.component.scss')],
- directives: [MacroItemComponent]
+ directives: [MacroItemComponent, SELECT2_DIRECTIVES]
})
export class MacroTabComponent implements OnInit, KeyActionSaver {
private macros: Macro[];
+ private macrosOptions: Array = [];
private selectedMacroIndex: number;
constructor(private uhkConfigurationService: UhkConfigurationService) {
@@ -42,6 +42,22 @@ export class MacroTabComponent implements OnInit, KeyActionSaver {
ngOnInit() {
this.macros = this.uhkConfigurationService.getUhkConfiguration().macros.elements;
+
+ this.macrosOptions.push({
+ id: '-1',
+ text: 'Select macro'
+ });
+
+ this.macrosOptions = this.macrosOptions.concat(this.macros.map(function(macro: Macro): OptionData {
+ return {
+ id: macro.id.toString(),
+ text: macro.name
+ };
+ }));
+ }
+
+ onChange(event) {
+ this.selectedMacroIndex = event.value;
}
keyActionValid(): boolean {
@@ -52,6 +68,7 @@ export class MacroTabComponent implements OnInit, KeyActionSaver {
if (!this.keyActionValid()) {
throw new Error('KeyAction is not valid. No selected macro!');
}
+
let keymapAction = new PlayMacroAction();
keymapAction.macroId = this.macros[this.selectedMacroIndex].id;
return keymapAction;
diff --git a/src/components/popover/tab/mouse-tab.component.ts b/src/components/popover/tab/mouse-tab.component.ts
index 9b19bf70..63615aee 100644
--- a/src/components/popover/tab/mouse-tab.component.ts
+++ b/src/components/popover/tab/mouse-tab.component.ts
@@ -102,7 +102,6 @@ import {MouseAction, MouseActionParam} from '../../../../config-serializer/confi
directives: [NgSwitch, NgSwitchWhen, NgSwitchDefault]
})
export class MouseTabComponent implements OnInit, KeyActionSaver {
- private MouseActionParam = MouseActionParam;
private mouseActionParam: MouseActionParam;
private selectedIndex: number;
private selectedButton: HTMLButtonElement;
diff --git a/src/components/popover/tab/scancodes.json b/src/components/popover/tab/scancodes.json
index 94919e72..afecb298 100644
--- a/src/components/popover/tab/scancodes.json
+++ b/src/components/popover/tab/scancodes.json
@@ -1,572 +1,542 @@
[
{
- "groupName": "Alphabet",
- "groupValues": [
+ "text": "Alphabet",
+ "children": [
{
- "scancode": "4",
- "searchTerm": "",
- "label": "A"
+ "id": "4",
+ "text": "A"
},
{
- "scancode": "5",
- "searchTerm": "",
- "label": "B"
+ "id": "5",
+ "text": "B"
},
{
- "scancode": "6",
- "searchTerm": "",
- "label": "C"
+ "id": "6",
+ "text": "C"
},
{
- "scancode": "7",
- "searchTerm": "",
- "label": "D"
+ "id": "7",
+ "text": "D"
},
{
- "scancode": "8",
- "searchTerm": "",
- "label": "E"
+ "id": "8",
+ "text": "E"
},
{
- "scancode": "9",
- "searchTerm": "",
- "label": "F"
+ "id": "9",
+ "text": "F"
},
{
- "scancode": "10",
- "searchTerm": "",
- "label": "G"
+ "id": "10",
+ "text": "G"
},
{
- "scancode": "11",
- "searchTerm": "",
- "label": "H"
+ "id": "11",
+ "text": "H"
},
{
- "scancode": "12",
- "searchTerm": "",
- "label": "I"
+ "id": "12",
+ "text": "I"
},
{
- "scancode": "13",
- "searchTerm": "",
- "label": "J"
+ "id": "13",
+ "text": "J"
},
{
- "scancode": "14",
- "searchTerm": "",
- "label": "K"
+ "id": "14",
+ "text": "K"
},
{
- "scancode": "15",
- "searchTerm": "",
- "label": "L"
+ "id": "15",
+ "text": "L"
},
{
- "scancode": "16",
- "searchTerm": "",
- "label": "M"
+ "id": "16",
+ "text": "M"
},
{
- "scancode": "17",
- "searchTerm": "",
- "label": "N"
+ "id": "17",
+ "text": "N"
},
{
- "scancode": "18",
- "searchTerm": "",
- "label": "O"
+ "id": "18",
+ "text": "O"
},
{
- "scancode": "19",
- "searchTerm": "",
- "label": "P"
+ "id": "19",
+ "text": "P"
},
{
- "scancode": "20",
- "searchTerm": "",
- "label": "Q"
+ "id": "20",
+ "text": "Q"
},
{
- "scancode": "21",
- "searchTerm": "",
- "label": "R"
+ "id": "21",
+ "text": "R"
},
{
- "scancode": "22",
- "searchTerm": "",
- "label": "S"
+ "id": "22",
+ "text": "S"
},
{
- "scancode": "23",
- "searchTerm": "",
- "label": "T"
+ "id": "23",
+ "text": "T"
},
{
- "scancode": "24",
- "searchTerm": "",
- "label": "U"
+ "id": "24",
+ "text": "U"
},
{
- "scancode": "25",
- "searchTerm": "",
- "label": "V"
+ "id": "25",
+ "text": "V"
},
{
- "scancode": "26",
- "searchTerm": "",
- "label": "W"
+ "id": "26",
+ "text": "W"
},
{
- "scancode": "27",
- "searchTerm": "",
- "label": "X"
+ "id": "27",
+ "text": "X"
},
{
- "scancode": "28",
- "searchTerm": "",
- "label": "Y"
+ "id": "28",
+ "text": "Y"
},
{
- "scancode": "29",
- "searchTerm": "",
- "label": "Z"
+ "id": "29",
+ "text": "Z"
}
]
},
{
- "groupName": "Number Row",
- "groupValues": [
+ "text": "Number Row",
+ "children": [
{
- "scancode": "30",
- "searchTerm": "",
- "label": "1 !"
+ "id": "30",
+ "text": "1 !"
},
{
- "scancode": "31",
- "searchTerm": "",
- "label": "2 @"
+ "id": "31",
+ "text": "2 @"
},
{
- "scancode": "32",
- "searchTerm": "",
- "label": "3 #"
+ "id": "32",
+ "text": "3 #"
},
{
- "scancode": "33",
- "searchTerm": "",
- "label": "4 $"
+ "id": "33",
+ "text": "4 $"
},
{
- "scancode": "34",
- "searchTerm": "",
- "label": "5 %"
+ "id": "34",
+ "text": "5 %"
},
{
- "scancode": "35",
- "searchTerm": "",
- "label": "6 ^"
+ "id": "35",
+ "text": "6 ^"
},
{
- "scancode": "36",
- "searchTerm": "",
- "label": "7 &"
+ "id": "36",
+ "text": "7 &"
},
{
- "scancode": "37",
- "searchTerm": "",
- "label": "8 *"
+ "id": "37",
+ "text": "8 *"
},
{
- "scancode": "38",
- "searchTerm": "",
- "label": "9 ("
+ "id": "38",
+ "text": "9 ("
},
{
- "scancode": "39",
- "searchTerm": "",
- "label": "0 )"
+ "id": "39",
+ "text": "0 )"
}
]
},
{
- "groupName": "Whitespace",
- "groupValues": [
+ "text": "Whitespace",
+ "children": [
{
- "scancode": "40",
- "searchTerm": "Enter",
- "label": "Return"
+ "id": "40",
+ "additional": {
+ "explanation": "Enter"
+ },
+ "text": "Return"
},
{
- "scancode": "41",
- "searchTerm": "",
- "label": "Escape"
+ "id": "41",
+ "text": "Escape"
},
{
- "scancode": "42",
- "searchTerm": "",
- "label": "Backspace"
+ "id": "42",
+ "text": "Backspace"
},
{
- "scancode": "43",
- "searchTerm": "",
- "label": "Tab"
+ "id": "43",
+ "text": "Tab"
},
{
- "scancode": "44",
- "searchTerm": "",
- "label": "Spacebar"
+ "id": "44",
+ "text": "Spacebar"
}
]
},
{
- "groupName": "Punctuation",
- "groupValues": [
+ "text": "Punctuation",
+ "children": [
{
- "scancode": "45",
- "searchTerm": "",
- "label": "- _"
+ "id": "45",
+ "text": "- _"
},
{
- "scancode": "46",
- "searchTerm": "",
- "label": "= +"
+ "id": "46",
+ "text": "= +"
},
{
- "scancode": "47",
- "searchTerm": "",
- "label": "[ {"
+ "id": "47",
+ "text": "[ {"
},
{
- "scancode": "48",
- "searchTerm": "",
- "label": "] }"
+ "id": "48",
+ "text": "] }"
},
{
- "scancode": "49",
- "searchTerm": "",
- "label": "\\ |"
+ "id": "49",
+ "text": "\\ |"
},
{
- "scancode": "51",
- "searchTerm": "",
- "label": "; :"
+ "id": "51",
+ "text": "; :"
},
{
- "scancode": "52",
- "searchTerm": "",
- "label": "' \""
+ "id": "52",
+ "text": "' \""
},
{
- "scancode": "53",
- "searchTerm": "",
- "label": "` ~"
+ "id": "53",
+ "text": "` ~"
},
{
- "scancode": "54",
- "searchTerm": "",
- "label": ", <"
+ "id": "54",
+ "text": ", <"
},
{
- "scancode": "55",
- "searchTerm": "",
- "label": ". >"
+ "id": "55",
+ "text": ". >"
},
{
- "scancode": "56",
- "searchTerm": "",
- "label": "/ ?"
+ "id": "56",
+ "text": "/ ?"
}
]
},
{
- "groupName": "Functionkeys",
- "groupValues": [
+ "text": "Functionkeys",
+ "children": [
{
- "scancode": "58",
- "searchTerm": "",
- "label": "F1"
+ "id": "58",
+ "text": "F1"
},
{
- "scancode": "59",
- "searchTerm": "",
- "label": "F2"
+ "id": "59",
+ "text": "F2"
},
{
- "scancode": "60",
- "searchTerm": "",
- "label": "F3"
+ "id": "60",
+ "text": "F3"
},
{
- "scancode": "61",
- "searchTerm": "",
- "label": "F4"
+ "id": "61",
+ "text": "F4"
},
{
- "scancode": "62",
- "searchTerm": "",
- "label": "F5"
+ "id": "62",
+ "text": "F5"
},
{
- "scancode": "63",
- "searchTerm": "",
- "label": "F6"
+ "id": "63",
+ "text": "F6"
},
{
- "scancode": "64",
- "searchTerm": "",
- "label": "F7"
+ "id": "64",
+ "text": "F7"
},
{
- "scancode": "65",
- "searchTerm": "",
- "label": "F8"
+ "id": "65",
+ "text": "F8"
},
{
- "scancode": "66",
- "searchTerm": "",
- "label": "F9"
+ "id": "66",
+ "text": "F9"
},
{
- "scancode": "67",
- "searchTerm": "",
- "label": "F10"
+ "id": "67",
+ "text": "F10"
},
{
- "scancode": "68",
- "searchTerm": "",
- "label": "F11"
+ "id": "68",
+ "text": "F11"
},
{
- "scancode": "69",
- "searchTerm": "",
- "label": "F12"
+ "id": "69",
+ "text": "F12"
}
]
},
{
- "groupName": "Navigation",
- "groupValues": [
+ "text": "Navigation",
+ "children": [
{
- "scancode": "73",
- "searchTerm": "",
- "label": "Insert"
+ "id": "73",
+ "text": "Insert"
},
{
- "scancode": "74",
- "searchTerm": "",
- "label": "Home"
+ "id": "74",
+ "text": "Home"
},
{
- "scancode": "75",
- "searchTerm": "PgUp pageup",
- "label": "Page Up"
+ "id": "75",
+ "additional": {
+ "explanation": "PgUp pageup"
+ },
+ "text": "Page Up"
},
{
- "scancode": "76",
- "searchTerm": "Delete Forward",
- "label": "Delete"
+ "id": "76",
+ "additional": {
+ "explanation": "Delete Forward"
+ },
+ "text": "Delete"
},
{
- "scancode": "77",
- "searchTerm": "",
- "label": "End"
+ "id": "77",
+ "text": "End"
},
{
- "scancode": "78",
- "searchTerm": "PgDn pagedown",
- "label": "Page Down"
+ "id": "78",
+ "additional": {
+ "explanation": "PgDn pagedown"
+ },
+ "text": "Page Down"
},
{
- "scancode": "79",
- "searchTerm": "ArrowRight",
- "label": "Right Arrow"
+ "id": "79",
+ "additional": {
+ "explanation": "ArrowRight"
+ },
+ "text": "Right Arrow"
},
{
- "scancode": "80",
- "searchTerm": "ArrowLeft",
- "label": "Left Arrow"
+ "id": "80",
+ "additional": {
+ "explanation": "ArrowLeft"
+ },
+ "text": "Left Arrow"
},
{
- "scancode": "81",
- "searchTerm": "ArrowDown",
- "label": "Down Arrow"
+ "id": "81",
+ "additional": {
+ "explanation": "ArrowDown"
+ },
+ "text": "Down Arrow"
},
{
- "scancode": "82",
- "searchTerm": "ArrowUp",
- "label": "Up Arrow"
+ "id": "82",
+ "additional": {
+ "explanation": "ArrowUp"
+ },
+ "text": "Up Arrow"
}
]
},
{
- "groupName": "NumberPad",
- "groupValues": [
+ "text": "NumberPad",
+ "children": [
{
- "scancode": "83",
- "searchTerm": "",
- "label": "NumLock"
+ "id": "83",
+ "text": "NumLock"
},
{
- "scancode": "84",
- "searchTerm": "slash",
- "label": "/"
+ "id": "84",
+ "additional": {
+ "explanation": "slash"
+ },
+ "text": "/"
},
{
- "scancode": "85",
- "searchTerm": "asterisk",
- "label": "*"
+ "id": "85",
+ "additional": {
+ "explanation": "asterisk"
+ },
+ "text": "*"
},
{
- "scancode": "86",
- "searchTerm": "minus",
- "label": "-"
+ "id": "86",
+ "additional": {
+ "explanation": "minus"
+ },
+ "text": "-"
},
{
- "scancode": "87",
- "searchTerm": "plus",
- "label": "+"
+ "id": "87",
+ "additional": {
+ "explanation": "plus"
+ },
+ "text": "+"
},
{
- "scancode": "88",
- "searchTerm": "",
- "label": "Enter"
+ "id": "88",
+ "text": "Enter"
},
{
- "scancode": "89",
- "searchTerm": "one",
- "label": "1"
+ "id": "89",
+ "additional": {
+ "explanation": "one"
+ },
+ "text": "1"
},
{
- "scancode": "90",
- "searchTerm": "two",
- "label": "2"
+ "id": "90",
+ "additional": {
+ "explanation": "two"
+ },
+ "text": "2"
},
{
- "scancode": "91",
- "searchTerm": "three",
- "label": "3"
+ "id": "91",
+ "additional": {
+ "explanation": "three"
+ },
+ "text": "3"
},
{
- "scancode": "92",
- "searchTerm": "four",
- "label": "4"
+ "id": "92",
+ "additional": {
+ "explanation": "four"
+ },
+ "text": "4"
},
{
- "scancode": "93",
- "searchTerm": "five",
- "label": "5"
+ "id": "93",
+ "additional": {
+ "explanation": "five"
+ },
+ "text": "5"
},
{
- "scancode": "94",
- "searchTerm": "six",
- "label": "6"
+ "id": "94",
+ "additional": {
+ "explanation": "six"
+ },
+ "text": "6"
},
{
- "scancode": "95",
- "searchTerm": "seven",
- "label": "7"
+ "id": "95",
+ "additional": {
+ "explanation": "seven"
+ },
+ "text": "7"
},
{
- "scancode": "96",
- "searchTerm": "eight",
- "label": "8"
+ "id": "96",
+ "additional": {
+ "explanation": "eight"
+ },
+ "text": "8"
},
{
- "scancode": "97",
- "searchTerm": "nine",
- "label": "9"
+ "id": "97",
+ "additional": {
+ "explanation": "nine"
+ },
+ "text": "9"
},
{
- "scancode": "98",
- "searchTerm": "zero",
- "label": "0"
+ "id": "98",
+ "additional": {
+ "explanation": "zero"
+ },
+ "text": "0"
},
{
- "scancode": "99",
- "searchTerm": "Period",
- "label": ","
+ "id": "99",
+ "additional": {
+ "explanation": "Period"
+ },
+ "text": ","
},
{
- "scancode": "176",
- "searchTerm": "Doublezero",
- "label": "00"
+ "id": "176",
+ "additional": {
+ "explanation": "Doublezero"
+ },
+ "text": "00"
},
{
- "scancode": "177",
- "searchTerm": "Triplezero",
- "label": "000"
+ "id": "177",
+ "additional": {
+ "explanation": "Triplezero"
+ },
+ "text": "000"
}
]
},
{
- "groupName": "Misc",
- "groupValues": [
+ "text": "Misc",
+ "children": [
{
- "scancode": "70",
- "searchTerm": "",
- "label": "PrintScreen"
+ "id": "70",
+ "text": "PrintScreen"
},
{
- "scancode": "57",
- "searchTerm": "",
- "label": "CapsLock"
+ "id": "57",
+ "text": "CapsLock"
},
{
- "scancode": "71",
- "searchTerm": "",
- "label": "ScrollLock"
+ "id": "71",
+ "text": "ScrollLock"
},
{
- "scancode": "72",
- "searchTerm": "",
- "label": "Pause"
+ "id": "72",
+ "text": "Pause"
}
]
},
{
- "groupName": "MediaKeys",
- "groupValues": [
+ "text": "MediaKeys",
+ "children": [
{
- "scancode": "127",
- "searchTerm": "",
- "label": "Mute"
+ "id": "127",
+ "text": "Mute"
},
{
- "scancode": "128",
- "searchTerm": "",
- "label": "Volume Up"
+ "id": "128",
+ "text": "Volume Up"
},
{
- "scancode": "129",
- "searchTerm": "",
- "label": "Volume Down"
+ "id": "129",
+ "text": "Volume Down"
},
{
- "scancode": "",
- "searchTerm": "",
- "label": "Next Track"
+ "id": "",
+ "text": "Next Track"
},
{
- "scancode": "",
- "searchTerm": "",
- "label": "Previous Track"
+ "id": "",
+ "text": "Previous Track"
},
{
- "scancode": "",
- "searchTerm": "",
- "label": "Stop"
+ "id": "",
+ "text": "Stop"
},
{
- "scancode": "",
- "searchTerm": "",
- "label": "Play/Pause"
+ "id": "",
+ "text": "Play/Pause"
},
{
- "scancode": "",
- "searchTerm": "",
- "label": "Eject"
+ "id": "",
+ "text": "Eject"
}
]
}
-]
\ No newline at end of file
+]
diff --git a/typings.json b/typings.json
index 8e2c21b5..140aff36 100644
--- a/typings.json
+++ b/typings.json
@@ -1,6 +1,7 @@
{
"globalDependencies": {
- "node": "registry:dt/node#4.0.0+20160319033040",
- "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654"
+ "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
+ "jquery": "registry:dt/jquery#1.10.0+20160417213236",
+ "node": "registry:dt/node#4.0.0+20160319033040"
}
}