simple-keyboard/docs/ast/source/lib/services/PhysicalKeyboard.js.json
Francisco Hodge 222629abdd Docs update
2018-10-24 20:20:28 -04:00

20574 lines
743 KiB
JSON

{
"type": "File",
"start": 0,
"end": 2651,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 88,
"column": 32
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2651,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 88,
"column": 32
}
},
"sourceType": "module",
"body": [
{
"type": "Identifier",
"start": 40,
"end": 2615,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 86,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 46,
"end": 62,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 22
},
"identifierName": "PhysicalKeyboard"
},
"name": "PhysicalKeyboard",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 63,
"end": 2615,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 86,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 140,
"end": 344,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 15,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 140,
"end": 151,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 8,
"column": 13
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 152,
"end": 174,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
}
],
"body": {
"type": "BlockStatement",
"start": 175,
"end": 344,
"loc": {
"start": {
"line": 8,
"column": 37
},
"end": {
"line": 15,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 250,
"end": 303,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 57
}
},
"expression": {
"type": "AssignmentExpression",
"start": 250,
"end": 302,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 56
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 250,
"end": 277,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 250,
"end": 254,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 255,
"end": 277,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 31
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 280,
"end": 302,
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 56
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @type {object} A simple-keyboard instance\r\n ",
"start": 182,
"end": 244,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 311,
"end": 339,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 32
}
},
"expression": {
"type": "CallExpression",
"start": 311,
"end": 338,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 311,
"end": 336,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 311,
"end": 315,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 316,
"end": 336,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 29
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener"
},
"computed": false
},
"arguments": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ",
"start": 68,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 7,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 350,
"end": 398,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 19,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 402,
"end": 1718,
"loc": {
"start": {
"line": 20,
"column": 2
},
"end": {
"line": 51,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 402,
"end": 422,
"loc": {
"start": {
"line": 20,
"column": 2
},
"end": {
"line": 20,
"column": 22
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 425,
"end": 1718,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 51,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 431,
"end": 1718,
"loc": {
"start": {
"line": 20,
"column": 31
},
"end": {
"line": 51,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 477,
"end": 1173,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 35,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 477,
"end": 1172,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 35,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 477,
"end": 502,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 477,
"end": 485,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 486,
"end": 502,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 503,
"end": 512,
"loc": {
"start": {
"line": 22,
"column": 30
},
"end": {
"line": 22,
"column": 39
}
},
"extra": {
"rawValue": "keydown",
"raw": "\"keydown\""
},
"value": "keydown"
},
{
"type": "ArrowFunctionExpression",
"start": 514,
"end": 1171,
"loc": {
"start": {
"line": 22,
"column": 41
},
"end": {
"line": 35,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 515,
"end": 520,
"loc": {
"start": {
"line": 22,
"column": 42
},
"end": {
"line": 22,
"column": 47
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 525,
"end": 1171,
"loc": {
"start": {
"line": 22,
"column": 52
},
"end": {
"line": 35,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 534,
"end": 1164,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 34,
"column": 7
}
},
"test": {
"type": "MemberExpression",
"start": 537,
"end": 598,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 70
}
},
"object": {
"type": "MemberExpression",
"start": 537,
"end": 572,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 537,
"end": 564,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 537,
"end": 541,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 542,
"end": 564,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 565,
"end": 572,
"loc": {
"start": {
"line": 23,
"column": 37
},
"end": {
"line": 23,
"column": 44
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 573,
"end": 598,
"loc": {
"start": {
"line": 23,
"column": 45
},
"end": {
"line": 23,
"column": 70
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 599,
"end": 1164,
"loc": {
"start": {
"line": 23,
"column": 71
},
"end": {
"line": 34,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 610,
"end": 669,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 614,
"end": 668,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 614,
"end": 627,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 25
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
},
"init": {
"type": "CallExpression",
"start": 630,
"end": 668,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 630,
"end": 661,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 630,
"end": 634,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 635,
"end": 661,
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 59
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 662,
"end": 667,
"loc": {
"start": {
"line": 24,
"column": 60
},
"end": {
"line": 24,
"column": 65
},
"identifierName": "event"
},
"name": "event"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 681,
"end": 1155,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 33,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 681,
"end": 1154,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 33,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 681,
"end": 717,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 681,
"end": 708,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 681,
"end": 685,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 686,
"end": 708,
"loc": {
"start": {
"line": 26,
"column": 13
},
"end": {
"line": 26,
"column": 35
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 709,
"end": 717,
"loc": {
"start": {
"line": 26,
"column": 36
},
"end": {
"line": 26,
"column": 44
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 718,
"end": 1153,
"loc": {
"start": {
"line": 26,
"column": 45
},
"end": {
"line": 33,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 718,
"end": 726,
"loc": {
"start": {
"line": 26,
"column": 45
},
"end": {
"line": 26,
"column": 53
},
"identifierName": "instance"
},
"name": "instance"
}
],
"body": {
"type": "BlockStatement",
"start": 730,
"end": 1153,
"loc": {
"start": {
"line": 26,
"column": 57
},
"end": {
"line": 33,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 743,
"end": 851,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 118
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 747,
"end": 850,
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 117
}
},
"id": {
"type": "Identifier",
"start": 747,
"end": 756,
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 23
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"init": {
"type": "LogicalExpression",
"start": 759,
"end": 850,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 117
}
},
"left": {
"type": "CallExpression",
"start": 759,
"end": 799,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 759,
"end": 784,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 759,
"end": 767,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 34
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 768,
"end": 784,
"loc": {
"start": {
"line": 27,
"column": 35
},
"end": {
"line": 27,
"column": 51
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 785,
"end": 798,
"loc": {
"start": {
"line": 27,
"column": 52
},
"end": {
"line": 27,
"column": 65
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 803,
"end": 850,
"loc": {
"start": {
"line": 27,
"column": 70
},
"end": {
"line": 27,
"column": 117
}
},
"callee": {
"type": "MemberExpression",
"start": 803,
"end": 828,
"loc": {
"start": {
"line": 27,
"column": 70
},
"end": {
"line": 27,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 803,
"end": 811,
"loc": {
"start": {
"line": 27,
"column": 70
},
"end": {
"line": 27,
"column": 78
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 812,
"end": 828,
"loc": {
"start": {
"line": 27,
"column": 79
},
"end": {
"line": 27,
"column": 95
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "TemplateLiteral",
"start": 829,
"end": 849,
"loc": {
"start": {
"line": 27,
"column": 96
},
"end": {
"line": 27,
"column": 116
}
},
"expressions": [
{
"type": "Identifier",
"start": 833,
"end": 846,
"loc": {
"start": {
"line": 27,
"column": 100
},
"end": {
"line": 27,
"column": 113
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 830,
"end": 831,
"loc": {
"start": {
"line": 27,
"column": 97
},
"end": {
"line": 27,
"column": 98
}
},
"value": {
"raw": "{",
"cooked": "{"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 847,
"end": 848,
"loc": {
"start": {
"line": 27,
"column": 114
},
"end": {
"line": 27,
"column": 115
}
},
"value": {
"raw": "}",
"cooked": "}"
},
"tail": true
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 865,
"end": 1142,
"loc": {
"start": {
"line": 29,
"column": 10
},
"end": {
"line": 32,
"column": 11
}
},
"test": {
"type": "Identifier",
"start": 868,
"end": 877,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 22
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"consequent": {
"type": "BlockStatement",
"start": 878,
"end": 1142,
"loc": {
"start": {
"line": 29,
"column": 23
},
"end": {
"line": 32,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 893,
"end": 1009,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 128
}
},
"expression": {
"type": "AssignmentExpression",
"start": 893,
"end": 1008,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 127
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 893,
"end": 924,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 43
}
},
"object": {
"type": "MemberExpression",
"start": 893,
"end": 908,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 893,
"end": 902,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 903,
"end": 908,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 27
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 909,
"end": 924,
"loc": {
"start": {
"line": 30,
"column": 28
},
"end": {
"line": 30,
"column": 43
},
"identifierName": "backgroundColor"
},
"name": "backgroundColor"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 927,
"end": 1008,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 127
}
},
"left": {
"type": "MemberExpression",
"start": 927,
"end": 995,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 114
}
},
"object": {
"type": "MemberExpression",
"start": 927,
"end": 962,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 81
}
},
"object": {
"type": "MemberExpression",
"start": 927,
"end": 954,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 73
}
},
"object": {
"type": "ThisExpression",
"start": 927,
"end": 931,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"start": 932,
"end": 954,
"loc": {
"start": {
"line": 30,
"column": 51
},
"end": {
"line": 30,
"column": 73
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 955,
"end": 962,
"loc": {
"start": {
"line": 30,
"column": 74
},
"end": {
"line": 30,
"column": 81
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 963,
"end": 995,
"loc": {
"start": {
"line": 30,
"column": 82
},
"end": {
"line": 30,
"column": 114
},
"identifierName": "physicalKeyboardHighlightBgColor"
},
"name": "physicalKeyboardHighlightBgColor"
},
"computed": false
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 999,
"end": 1008,
"loc": {
"start": {
"line": 30,
"column": 118
},
"end": {
"line": 30,
"column": 127
}
},
"extra": {
"rawValue": "#9ab4d0",
"raw": "\"#9ab4d0\""
},
"value": "#9ab4d0"
}
}
}
},
{
"type": "ExpressionStatement",
"start": 1023,
"end": 1129,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 118
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1023,
"end": 1128,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 117
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1023,
"end": 1044,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 1023,
"end": 1038,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1023,
"end": 1032,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1033,
"end": 1038,
"loc": {
"start": {
"line": 31,
"column": 22
},
"end": {
"line": 31,
"column": 27
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1039,
"end": 1044,
"loc": {
"start": {
"line": 31,
"column": 28
},
"end": {
"line": 31,
"column": 33
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 1047,
"end": 1128,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 117
}
},
"left": {
"type": "MemberExpression",
"start": 1047,
"end": 1117,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 106
}
},
"object": {
"type": "MemberExpression",
"start": 1047,
"end": 1082,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 71
}
},
"object": {
"type": "MemberExpression",
"start": 1047,
"end": 1074,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 63
}
},
"object": {
"type": "ThisExpression",
"start": 1047,
"end": 1051,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"start": 1052,
"end": 1074,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 63
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1075,
"end": 1082,
"loc": {
"start": {
"line": 31,
"column": 64
},
"end": {
"line": 31,
"column": 71
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1083,
"end": 1117,
"loc": {
"start": {
"line": 31,
"column": 72
},
"end": {
"line": 31,
"column": 106
},
"identifierName": "physicalKeyboardHighlightTextColor"
},
"name": "physicalKeyboardHighlightTextColor"
},
"computed": false
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 1121,
"end": 1128,
"loc": {
"start": {
"line": 31,
"column": 110
},
"end": {
"line": 31,
"column": 117
}
},
"extra": {
"rawValue": "white",
"raw": "\"white\""
},
"value": "white"
}
}
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Adding button style on keydown",
"start": 438,
"end": 471,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 37
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1181,
"end": 1214,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 37,
"column": 37
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1220,
"end": 1713,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 1220,
"end": 1712,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 50,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 1220,
"end": 1245,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 1220,
"end": 1228,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1229,
"end": 1245,
"loc": {
"start": {
"line": 38,
"column": 13
},
"end": {
"line": 38,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 1246,
"end": 1253,
"loc": {
"start": {
"line": 38,
"column": 30
},
"end": {
"line": 38,
"column": 37
}
},
"extra": {
"rawValue": "keyup",
"raw": "\"keyup\""
},
"value": "keyup"
},
{
"type": "ArrowFunctionExpression",
"start": 1255,
"end": 1711,
"loc": {
"start": {
"line": 38,
"column": 39
},
"end": {
"line": 50,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1256,
"end": 1261,
"loc": {
"start": {
"line": 38,
"column": 40
},
"end": {
"line": 38,
"column": 45
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 1266,
"end": 1711,
"loc": {
"start": {
"line": 38,
"column": 50
},
"end": {
"line": 50,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1275,
"end": 1704,
"loc": {
"start": {
"line": 39,
"column": 6
},
"end": {
"line": 49,
"column": 7
}
},
"test": {
"type": "MemberExpression",
"start": 1278,
"end": 1339,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 70
}
},
"object": {
"type": "MemberExpression",
"start": 1278,
"end": 1313,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 1278,
"end": 1305,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1278,
"end": 1282,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 1283,
"end": 1305,
"loc": {
"start": {
"line": 39,
"column": 14
},
"end": {
"line": 39,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1306,
"end": 1313,
"loc": {
"start": {
"line": 39,
"column": 37
},
"end": {
"line": 39,
"column": 44
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1314,
"end": 1339,
"loc": {
"start": {
"line": 39,
"column": 45
},
"end": {
"line": 39,
"column": 70
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1340,
"end": 1704,
"loc": {
"start": {
"line": 39,
"column": 71
},
"end": {
"line": 49,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1351,
"end": 1410,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1355,
"end": 1409,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 1355,
"end": 1368,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 25
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
},
"init": {
"type": "CallExpression",
"start": 1371,
"end": 1409,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 1371,
"end": 1402,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 1371,
"end": 1375,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 1376,
"end": 1402,
"loc": {
"start": {
"line": 40,
"column": 33
},
"end": {
"line": 40,
"column": 59
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1403,
"end": 1408,
"loc": {
"start": {
"line": 40,
"column": 60
},
"end": {
"line": 40,
"column": 65
},
"identifierName": "event"
},
"name": "event"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 1422,
"end": 1695,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 48,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 1422,
"end": 1694,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 48,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 1422,
"end": 1458,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 1422,
"end": 1449,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 1422,
"end": 1426,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1427,
"end": 1449,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 35
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1450,
"end": 1458,
"loc": {
"start": {
"line": 42,
"column": 36
},
"end": {
"line": 42,
"column": 44
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 1459,
"end": 1693,
"loc": {
"start": {
"line": 42,
"column": 45
},
"end": {
"line": 48,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1459,
"end": 1467,
"loc": {
"start": {
"line": 42,
"column": 45
},
"end": {
"line": 42,
"column": 53
},
"identifierName": "instance"
},
"name": "instance"
}
],
"body": {
"type": "BlockStatement",
"start": 1471,
"end": 1693,
"loc": {
"start": {
"line": 42,
"column": 57
},
"end": {
"line": 48,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1484,
"end": 1592,
"loc": {
"start": {
"line": 43,
"column": 10
},
"end": {
"line": 43,
"column": 118
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1488,
"end": 1591,
"loc": {
"start": {
"line": 43,
"column": 14
},
"end": {
"line": 43,
"column": 117
}
},
"id": {
"type": "Identifier",
"start": 1488,
"end": 1497,
"loc": {
"start": {
"line": 43,
"column": 14
},
"end": {
"line": 43,
"column": 23
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"init": {
"type": "LogicalExpression",
"start": 1500,
"end": 1591,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 117
}
},
"left": {
"type": "CallExpression",
"start": 1500,
"end": 1540,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 1500,
"end": 1525,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 1500,
"end": 1508,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 34
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1509,
"end": 1525,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 51
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1526,
"end": 1539,
"loc": {
"start": {
"line": 43,
"column": 52
},
"end": {
"line": 43,
"column": 65
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 1544,
"end": 1591,
"loc": {
"start": {
"line": 43,
"column": 70
},
"end": {
"line": 43,
"column": 117
}
},
"callee": {
"type": "MemberExpression",
"start": 1544,
"end": 1569,
"loc": {
"start": {
"line": 43,
"column": 70
},
"end": {
"line": 43,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 1544,
"end": 1552,
"loc": {
"start": {
"line": 43,
"column": 70
},
"end": {
"line": 43,
"column": 78
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1553,
"end": 1569,
"loc": {
"start": {
"line": 43,
"column": 79
},
"end": {
"line": 43,
"column": 95
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "TemplateLiteral",
"start": 1570,
"end": 1590,
"loc": {
"start": {
"line": 43,
"column": 96
},
"end": {
"line": 43,
"column": 116
}
},
"expressions": [
{
"type": "Identifier",
"start": 1574,
"end": 1587,
"loc": {
"start": {
"line": 43,
"column": 100
},
"end": {
"line": 43,
"column": 113
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 1571,
"end": 1572,
"loc": {
"start": {
"line": 43,
"column": 97
},
"end": {
"line": 43,
"column": 98
}
},
"value": {
"raw": "{",
"cooked": "{"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 1588,
"end": 1589,
"loc": {
"start": {
"line": 43,
"column": 114
},
"end": {
"line": 43,
"column": 115
}
},
"value": {
"raw": "}",
"cooked": "}"
},
"tail": true
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1606,
"end": 1682,
"loc": {
"start": {
"line": 45,
"column": 10
},
"end": {
"line": 47,
"column": 11
}
},
"test": {
"type": "Identifier",
"start": 1609,
"end": 1618,
"loc": {
"start": {
"line": 45,
"column": 13
},
"end": {
"line": 45,
"column": 22
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"consequent": {
"type": "BlockStatement",
"start": 1619,
"end": 1682,
"loc": {
"start": {
"line": 45,
"column": 23
},
"end": {
"line": 47,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1634,
"end": 1669,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 47
}
},
"expression": {
"type": "CallExpression",
"start": 1634,
"end": 1668,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 1634,
"end": 1659,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 1634,
"end": 1643,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1644,
"end": 1659,
"loc": {
"start": {
"line": 46,
"column": 22
},
"end": {
"line": 46,
"column": 37
},
"identifierName": "removeAttribute"
},
"name": "removeAttribute"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1660,
"end": 1667,
"loc": {
"start": {
"line": 46,
"column": 38
},
"end": {
"line": 46,
"column": 45
}
},
"extra": {
"rawValue": "style",
"raw": "\"style\""
},
"value": "style"
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1181,
"end": 1214,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 37,
"column": 37
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 350,
"end": 398,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 19,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ",
"start": 1724,
"end": 1871,
"loc": {
"start": {
"line": 53,
"column": 2
},
"end": {
"line": 56,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 1875,
"end": 2612,
"loc": {
"start": {
"line": 57,
"column": 2
},
"end": {
"line": 85,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1875,
"end": 1901,
"loc": {
"start": {
"line": 57,
"column": 2
},
"end": {
"line": 57,
"column": 28
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 1904,
"end": 2612,
"loc": {
"start": {
"line": 57,
"column": 31
},
"end": {
"line": 85,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1905,
"end": 1910,
"loc": {
"start": {
"line": 57,
"column": 32
},
"end": {
"line": 57,
"column": 37
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 1915,
"end": 2612,
"loc": {
"start": {
"line": 57,
"column": 42
},
"end": {
"line": 85,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1922,
"end": 1933,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 15
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1926,
"end": 1932,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 14
}
},
"id": {
"type": "Identifier",
"start": 1926,
"end": 1932,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 14
},
"identifierName": "output"
},
"name": "output"
},
"init": null
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1941,
"end": 2302,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 72,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 1952,
"end": 2218,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 67,
"column": 33
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2180,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 66,
"column": 32
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2143,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 65,
"column": 36
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2102,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 64,
"column": 38
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2059,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 63,
"column": 34
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2020,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 62,
"column": 34
}
},
"left": {
"type": "CallExpression",
"start": 1952,
"end": 1981,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 1952,
"end": 1971,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 1952,
"end": 1962,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 1952,
"end": 1957,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1958,
"end": 1962,
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1963,
"end": 1971,
"loc": {
"start": {
"line": 61,
"column": 17
},
"end": {
"line": 61,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1972,
"end": 1980,
"loc": {
"start": {
"line": 61,
"column": 26
},
"end": {
"line": 61,
"column": 34
}
},
"extra": {
"rawValue": "Numpad",
"raw": "\"Numpad\""
},
"value": "Numpad"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 1992,
"end": 2020,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 1992,
"end": 2011,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 1992,
"end": 2002,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 1992,
"end": 1997,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1998,
"end": 2002,
"loc": {
"start": {
"line": 62,
"column": 12
},
"end": {
"line": 62,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2003,
"end": 2011,
"loc": {
"start": {
"line": 62,
"column": 17
},
"end": {
"line": 62,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2012,
"end": 2019,
"loc": {
"start": {
"line": 62,
"column": 26
},
"end": {
"line": 62,
"column": 33
}
},
"extra": {
"rawValue": "Shift",
"raw": "\"Shift\""
},
"value": "Shift"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2031,
"end": 2059,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 2031,
"end": 2050,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2031,
"end": 2041,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2031,
"end": 2036,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2037,
"end": 2041,
"loc": {
"start": {
"line": 63,
"column": 12
},
"end": {
"line": 63,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2042,
"end": 2050,
"loc": {
"start": {
"line": 63,
"column": 17
},
"end": {
"line": 63,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2051,
"end": 2058,
"loc": {
"start": {
"line": 63,
"column": 26
},
"end": {
"line": 63,
"column": 33
}
},
"extra": {
"rawValue": "Space",
"raw": "\"Space\""
},
"value": "Space"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2070,
"end": 2102,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 2070,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2070,
"end": 2080,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2070,
"end": 2075,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2076,
"end": 2080,
"loc": {
"start": {
"line": 64,
"column": 12
},
"end": {
"line": 64,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2081,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 17
},
"end": {
"line": 64,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2090,
"end": 2101,
"loc": {
"start": {
"line": 64,
"column": 26
},
"end": {
"line": 64,
"column": 37
}
},
"extra": {
"rawValue": "Backspace",
"raw": "\"Backspace\""
},
"value": "Backspace"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2113,
"end": 2143,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 2113,
"end": 2132,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2113,
"end": 2123,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2113,
"end": 2118,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2119,
"end": 2123,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2124,
"end": 2132,
"loc": {
"start": {
"line": 65,
"column": 17
},
"end": {
"line": 65,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2133,
"end": 2142,
"loc": {
"start": {
"line": 65,
"column": 26
},
"end": {
"line": 65,
"column": 35
}
},
"extra": {
"rawValue": "Control",
"raw": "\"Control\""
},
"value": "Control"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2154,
"end": 2180,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 2154,
"end": 2173,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2154,
"end": 2164,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2154,
"end": 2159,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2160,
"end": 2164,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2165,
"end": 2173,
"loc": {
"start": {
"line": 66,
"column": 17
},
"end": {
"line": 66,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2174,
"end": 2179,
"loc": {
"start": {
"line": 66,
"column": 26
},
"end": {
"line": 66,
"column": 31
}
},
"extra": {
"rawValue": "Alt",
"raw": "\"Alt\""
},
"value": "Alt"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2191,
"end": 2218,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 2191,
"end": 2210,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2191,
"end": 2201,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2191,
"end": 2196,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2197,
"end": 2201,
"loc": {
"start": {
"line": 67,
"column": 12
},
"end": {
"line": 67,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2202,
"end": 2210,
"loc": {
"start": {
"line": 67,
"column": 17
},
"end": {
"line": 67,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2211,
"end": 2217,
"loc": {
"start": {
"line": 67,
"column": 26
},
"end": {
"line": 67,
"column": 32
}
},
"extra": {
"rawValue": "Meta",
"raw": "\"Meta\""
},
"value": "Meta"
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 2225,
"end": 2261,
"loc": {
"start": {
"line": 68,
"column": 5
},
"end": {
"line": 70,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2234,
"end": 2254,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2234,
"end": 2253,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 25
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2234,
"end": 2240,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "MemberExpression",
"start": 2243,
"end": 2253,
"loc": {
"start": {
"line": 69,
"column": 15
},
"end": {
"line": 69,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 2243,
"end": 2248,
"loc": {
"start": {
"line": 69,
"column": 15
},
"end": {
"line": 69,
"column": 20
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2249,
"end": 2253,
"loc": {
"start": {
"line": 69,
"column": 21
},
"end": {
"line": 69,
"column": 25
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2267,
"end": 2302,
"loc": {
"start": {
"line": 70,
"column": 11
},
"end": {
"line": 72,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2276,
"end": 2295,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2276,
"end": 2294,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 24
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2276,
"end": 2282,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "MemberExpression",
"start": 2285,
"end": 2294,
"loc": {
"start": {
"line": 71,
"column": 15
},
"end": {
"line": 71,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 2285,
"end": 2290,
"loc": {
"start": {
"line": 71,
"column": 15
},
"end": {
"line": 71,
"column": 20
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2291,
"end": 2294,
"loc": {
"start": {
"line": 71,
"column": 21
},
"end": {
"line": 71,
"column": 24
},
"identifierName": "key"
},
"name": "key"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ",
"start": 2310,
"end": 2379,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
]
},
{
"type": "IfStatement",
"start": 2385,
"end": 2585,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 82,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 2397,
"end": 2531,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 79,
"column": 98
}
},
"left": {
"type": "BinaryExpression",
"start": 2397,
"end": 2428,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 37
}
},
"left": {
"type": "Identifier",
"start": 2397,
"end": 2403,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 12
},
"identifierName": "output"
},
"name": "output",
"leadingComments": null
},
"operator": "!==",
"right": {
"type": "CallExpression",
"start": 2408,
"end": 2428,
"loc": {
"start": {
"line": 78,
"column": 17
},
"end": {
"line": 78,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 2408,
"end": 2426,
"loc": {
"start": {
"line": 78,
"column": 17
},
"end": {
"line": 78,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 2408,
"end": 2414,
"loc": {
"start": {
"line": 78,
"column": 17
},
"end": {
"line": 78,
"column": 23
},
"identifierName": "output"
},
"name": "output"
},
"property": {
"type": "Identifier",
"start": 2415,
"end": 2426,
"loc": {
"start": {
"line": 78,
"column": 24
},
"end": {
"line": 78,
"column": 35
},
"identifierName": "toUpperCase"
},
"name": "toUpperCase"
},
"computed": false
},
"arguments": []
},
"leadingComments": null
},
"operator": "||",
"right": {
"type": "LogicalExpression",
"start": 2440,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 97
}
},
"left": {
"type": "LogicalExpression",
"start": 2440,
"end": 2504,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 71
}
},
"left": {
"type": "BinaryExpression",
"start": 2440,
"end": 2461,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 28
}
},
"left": {
"type": "MemberExpression",
"start": 2440,
"end": 2453,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 20
}
},
"object": {
"type": "MemberExpression",
"start": 2440,
"end": 2450,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 2440,
"end": 2445,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 12
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2446,
"end": 2450,
"loc": {
"start": {
"line": 79,
"column": 13
},
"end": {
"line": 79,
"column": 17
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "NumericLiteral",
"start": 2451,
"end": 2452,
"loc": {
"start": {
"line": 79,
"column": 18
},
"end": {
"line": 79,
"column": 19
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 2458,
"end": 2461,
"loc": {
"start": {
"line": 79,
"column": 25
},
"end": {
"line": 79,
"column": 28
}
},
"extra": {
"rawValue": "F",
"raw": "\"F\""
},
"value": "F"
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 2465,
"end": 2504,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 71
}
},
"callee": {
"type": "MemberExpression",
"start": 2465,
"end": 2481,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 48
}
},
"object": {
"type": "Identifier",
"start": 2465,
"end": 2471,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 38
},
"identifierName": "Number"
},
"name": "Number"
},
"property": {
"type": "Identifier",
"start": 2472,
"end": 2481,
"loc": {
"start": {
"line": 79,
"column": 39
},
"end": {
"line": 79,
"column": 48
},
"identifierName": "isInteger"
},
"name": "isInteger"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2482,
"end": 2503,
"loc": {
"start": {
"line": 79,
"column": 49
},
"end": {
"line": 79,
"column": 70
}
},
"callee": {
"type": "Identifier",
"start": 2482,
"end": 2488,
"loc": {
"start": {
"line": 79,
"column": 49
},
"end": {
"line": 79,
"column": 55
},
"identifierName": "Number"
},
"name": "Number"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2489,
"end": 2502,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 69
}
},
"object": {
"type": "MemberExpression",
"start": 2489,
"end": 2499,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 66
}
},
"object": {
"type": "Identifier",
"start": 2489,
"end": 2494,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 61
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2495,
"end": 2499,
"loc": {
"start": {
"line": 79,
"column": 62
},
"end": {
"line": 79,
"column": 66
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "NumericLiteral",
"start": 2500,
"end": 2501,
"loc": {
"start": {
"line": 79,
"column": 67
},
"end": {
"line": 79,
"column": 68
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"computed": true
}
]
}
]
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 2508,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 97
}
},
"left": {
"type": "MemberExpression",
"start": 2508,
"end": 2525,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 92
}
},
"object": {
"type": "MemberExpression",
"start": 2508,
"end": 2518,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 85
}
},
"object": {
"type": "Identifier",
"start": 2508,
"end": 2513,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 80
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2514,
"end": 2518,
"loc": {
"start": {
"line": 79,
"column": 81
},
"end": {
"line": 79,
"column": 85
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2519,
"end": 2525,
"loc": {
"start": {
"line": 79,
"column": 86
},
"end": {
"line": 79,
"column": 92
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "NumericLiteral",
"start": 2529,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 96
},
"end": {
"line": 79,
"column": 97
}
},
"extra": {
"rawValue": 3,
"raw": "3"
},
"value": 3
}
},
"extra": {
"parenthesized": true,
"parenStart": 2439
}
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 2539,
"end": 2585,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 82,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2548,
"end": 2578,
"loc": {
"start": {
"line": 81,
"column": 6
},
"end": {
"line": 81,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2548,
"end": 2577,
"loc": {
"start": {
"line": 81,
"column": 6
},
"end": {
"line": 81,
"column": 35
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2548,
"end": 2554,
"loc": {
"start": {
"line": 81,
"column": 6
},
"end": {
"line": 81,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "CallExpression",
"start": 2557,
"end": 2577,
"loc": {
"start": {
"line": 81,
"column": 15
},
"end": {
"line": 81,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 2557,
"end": 2575,
"loc": {
"start": {
"line": 81,
"column": 15
},
"end": {
"line": 81,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 2557,
"end": 2563,
"loc": {
"start": {
"line": 81,
"column": 15
},
"end": {
"line": 81,
"column": 21
},
"identifierName": "output"
},
"name": "output"
},
"property": {
"type": "Identifier",
"start": 2564,
"end": 2575,
"loc": {
"start": {
"line": 81,
"column": 22
},
"end": {
"line": 81,
"column": 33
},
"identifierName": "toLowerCase"
},
"name": "toLowerCase"
},
"computed": false
},
"arguments": []
}
}
}
],
"directives": []
},
"alternate": null,
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ",
"start": 2310,
"end": 2379,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
]
},
{
"type": "ReturnStatement",
"start": 2593,
"end": 2607,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 2600,
"end": 2606,
"loc": {
"start": {
"line": 84,
"column": 11
},
"end": {
"line": 84,
"column": 17
},
"identifierName": "output"
},
"name": "output"
}
}
],
"directives": []
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ",
"start": 1724,
"end": 1871,
"loc": {
"start": {
"line": 53,
"column": 2
},
"end": {
"line": 56,
"column": 5
}
}
}
]
}
]
},
"leadingComments": [],
"name": "_",
"trailingComments": []
},
{
"type": "Identifier",
"start": 2619,
"end": 2651,
"loc": {
"start": {
"line": 88,
"column": 0
},
"end": {
"line": 88,
"column": 32
}
},
"declaration": {
"type": "Identifier",
"start": 2634,
"end": 2650,
"loc": {
"start": {
"line": 88,
"column": 15
},
"end": {
"line": 88,
"column": 31
},
"identifierName": "PhysicalKeyboard"
},
"name": "PhysicalKeyboard"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 2619,
"end": 2651,
"loc": {
"start": {
"line": 88,
"column": 0
},
"end": {
"line": 88,
"column": 32
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 40,
"end": 2615,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 86,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 46,
"end": 62,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 22
},
"identifierName": "PhysicalKeyboard"
},
"name": "PhysicalKeyboard",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 63,
"end": 2615,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 86,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 140,
"end": 344,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 15,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 140,
"end": 151,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 8,
"column": 13
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 152,
"end": 174,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
}
],
"body": {
"type": "BlockStatement",
"start": 175,
"end": 344,
"loc": {
"start": {
"line": 8,
"column": 37
},
"end": {
"line": 15,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 250,
"end": 303,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 57
}
},
"expression": {
"type": "AssignmentExpression",
"start": 250,
"end": 302,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 56
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 250,
"end": 277,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 250,
"end": 254,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 255,
"end": 277,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 31
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 280,
"end": 302,
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 56
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @type {object} A simple-keyboard instance\r\n ",
"start": 182,
"end": 244,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 311,
"end": 339,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 32
}
},
"expression": {
"type": "CallExpression",
"start": 311,
"end": 338,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 311,
"end": 336,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 311,
"end": 315,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 316,
"end": 336,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 29
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener"
},
"computed": false
},
"arguments": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ",
"start": 68,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 7,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 350,
"end": 398,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 19,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 402,
"end": 1718,
"loc": {
"start": {
"line": 20,
"column": 2
},
"end": {
"line": 51,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 402,
"end": 422,
"loc": {
"start": {
"line": 20,
"column": 2
},
"end": {
"line": 20,
"column": 22
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 425,
"end": 1718,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 51,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 431,
"end": 1718,
"loc": {
"start": {
"line": 20,
"column": 31
},
"end": {
"line": 51,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 477,
"end": 1173,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 35,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 477,
"end": 1172,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 35,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 477,
"end": 502,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 477,
"end": 485,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 486,
"end": 502,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 503,
"end": 512,
"loc": {
"start": {
"line": 22,
"column": 30
},
"end": {
"line": 22,
"column": 39
}
},
"extra": {
"rawValue": "keydown",
"raw": "\"keydown\""
},
"value": "keydown"
},
{
"type": "ArrowFunctionExpression",
"start": 514,
"end": 1171,
"loc": {
"start": {
"line": 22,
"column": 41
},
"end": {
"line": 35,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 515,
"end": 520,
"loc": {
"start": {
"line": 22,
"column": 42
},
"end": {
"line": 22,
"column": 47
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 525,
"end": 1171,
"loc": {
"start": {
"line": 22,
"column": 52
},
"end": {
"line": 35,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 534,
"end": 1164,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 34,
"column": 7
}
},
"test": {
"type": "MemberExpression",
"start": 537,
"end": 598,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 70
}
},
"object": {
"type": "MemberExpression",
"start": 537,
"end": 572,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 537,
"end": 564,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 537,
"end": 541,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 542,
"end": 564,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 565,
"end": 572,
"loc": {
"start": {
"line": 23,
"column": 37
},
"end": {
"line": 23,
"column": 44
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 573,
"end": 598,
"loc": {
"start": {
"line": 23,
"column": 45
},
"end": {
"line": 23,
"column": 70
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 599,
"end": 1164,
"loc": {
"start": {
"line": 23,
"column": 71
},
"end": {
"line": 34,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 610,
"end": 669,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 614,
"end": 668,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 614,
"end": 627,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 25
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
},
"init": {
"type": "CallExpression",
"start": 630,
"end": 668,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 630,
"end": 661,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 630,
"end": 634,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 635,
"end": 661,
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 59
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 662,
"end": 667,
"loc": {
"start": {
"line": 24,
"column": 60
},
"end": {
"line": 24,
"column": 65
},
"identifierName": "event"
},
"name": "event"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 681,
"end": 1155,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 33,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 681,
"end": 1154,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 33,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 681,
"end": 717,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 681,
"end": 708,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 681,
"end": 685,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 686,
"end": 708,
"loc": {
"start": {
"line": 26,
"column": 13
},
"end": {
"line": 26,
"column": 35
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 709,
"end": 717,
"loc": {
"start": {
"line": 26,
"column": 36
},
"end": {
"line": 26,
"column": 44
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 718,
"end": 1153,
"loc": {
"start": {
"line": 26,
"column": 45
},
"end": {
"line": 33,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 718,
"end": 726,
"loc": {
"start": {
"line": 26,
"column": 45
},
"end": {
"line": 26,
"column": 53
},
"identifierName": "instance"
},
"name": "instance"
}
],
"body": {
"type": "BlockStatement",
"start": 730,
"end": 1153,
"loc": {
"start": {
"line": 26,
"column": 57
},
"end": {
"line": 33,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 743,
"end": 851,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 118
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 747,
"end": 850,
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 117
}
},
"id": {
"type": "Identifier",
"start": 747,
"end": 756,
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 23
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"init": {
"type": "LogicalExpression",
"start": 759,
"end": 850,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 117
}
},
"left": {
"type": "CallExpression",
"start": 759,
"end": 799,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 759,
"end": 784,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 759,
"end": 767,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 34
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 768,
"end": 784,
"loc": {
"start": {
"line": 27,
"column": 35
},
"end": {
"line": 27,
"column": 51
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 785,
"end": 798,
"loc": {
"start": {
"line": 27,
"column": 52
},
"end": {
"line": 27,
"column": 65
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 803,
"end": 850,
"loc": {
"start": {
"line": 27,
"column": 70
},
"end": {
"line": 27,
"column": 117
}
},
"callee": {
"type": "MemberExpression",
"start": 803,
"end": 828,
"loc": {
"start": {
"line": 27,
"column": 70
},
"end": {
"line": 27,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 803,
"end": 811,
"loc": {
"start": {
"line": 27,
"column": 70
},
"end": {
"line": 27,
"column": 78
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 812,
"end": 828,
"loc": {
"start": {
"line": 27,
"column": 79
},
"end": {
"line": 27,
"column": 95
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "TemplateLiteral",
"start": 829,
"end": 849,
"loc": {
"start": {
"line": 27,
"column": 96
},
"end": {
"line": 27,
"column": 116
}
},
"expressions": [
{
"type": "Identifier",
"start": 833,
"end": 846,
"loc": {
"start": {
"line": 27,
"column": 100
},
"end": {
"line": 27,
"column": 113
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 830,
"end": 831,
"loc": {
"start": {
"line": 27,
"column": 97
},
"end": {
"line": 27,
"column": 98
}
},
"value": {
"raw": "{",
"cooked": "{"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 847,
"end": 848,
"loc": {
"start": {
"line": 27,
"column": 114
},
"end": {
"line": 27,
"column": 115
}
},
"value": {
"raw": "}",
"cooked": "}"
},
"tail": true
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 865,
"end": 1142,
"loc": {
"start": {
"line": 29,
"column": 10
},
"end": {
"line": 32,
"column": 11
}
},
"test": {
"type": "Identifier",
"start": 868,
"end": 877,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 22
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"consequent": {
"type": "BlockStatement",
"start": 878,
"end": 1142,
"loc": {
"start": {
"line": 29,
"column": 23
},
"end": {
"line": 32,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 893,
"end": 1009,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 128
}
},
"expression": {
"type": "AssignmentExpression",
"start": 893,
"end": 1008,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 127
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 893,
"end": 924,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 43
}
},
"object": {
"type": "MemberExpression",
"start": 893,
"end": 908,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 893,
"end": 902,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 903,
"end": 908,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 27
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 909,
"end": 924,
"loc": {
"start": {
"line": 30,
"column": 28
},
"end": {
"line": 30,
"column": 43
},
"identifierName": "backgroundColor"
},
"name": "backgroundColor"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 927,
"end": 1008,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 127
}
},
"left": {
"type": "MemberExpression",
"start": 927,
"end": 995,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 114
}
},
"object": {
"type": "MemberExpression",
"start": 927,
"end": 962,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 81
}
},
"object": {
"type": "MemberExpression",
"start": 927,
"end": 954,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 73
}
},
"object": {
"type": "ThisExpression",
"start": 927,
"end": 931,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"start": 932,
"end": 954,
"loc": {
"start": {
"line": 30,
"column": 51
},
"end": {
"line": 30,
"column": 73
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 955,
"end": 962,
"loc": {
"start": {
"line": 30,
"column": 74
},
"end": {
"line": 30,
"column": 81
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 963,
"end": 995,
"loc": {
"start": {
"line": 30,
"column": 82
},
"end": {
"line": 30,
"column": 114
},
"identifierName": "physicalKeyboardHighlightBgColor"
},
"name": "physicalKeyboardHighlightBgColor"
},
"computed": false
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 999,
"end": 1008,
"loc": {
"start": {
"line": 30,
"column": 118
},
"end": {
"line": 30,
"column": 127
}
},
"extra": {
"rawValue": "#9ab4d0",
"raw": "\"#9ab4d0\""
},
"value": "#9ab4d0"
}
}
}
},
{
"type": "ExpressionStatement",
"start": 1023,
"end": 1129,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 118
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1023,
"end": 1128,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 117
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1023,
"end": 1044,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 1023,
"end": 1038,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1023,
"end": 1032,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1033,
"end": 1038,
"loc": {
"start": {
"line": 31,
"column": 22
},
"end": {
"line": 31,
"column": 27
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1039,
"end": 1044,
"loc": {
"start": {
"line": 31,
"column": 28
},
"end": {
"line": 31,
"column": 33
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 1047,
"end": 1128,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 117
}
},
"left": {
"type": "MemberExpression",
"start": 1047,
"end": 1117,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 106
}
},
"object": {
"type": "MemberExpression",
"start": 1047,
"end": 1082,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 71
}
},
"object": {
"type": "MemberExpression",
"start": 1047,
"end": 1074,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 63
}
},
"object": {
"type": "ThisExpression",
"start": 1047,
"end": 1051,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"start": 1052,
"end": 1074,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 63
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1075,
"end": 1082,
"loc": {
"start": {
"line": 31,
"column": 64
},
"end": {
"line": 31,
"column": 71
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1083,
"end": 1117,
"loc": {
"start": {
"line": 31,
"column": 72
},
"end": {
"line": 31,
"column": 106
},
"identifierName": "physicalKeyboardHighlightTextColor"
},
"name": "physicalKeyboardHighlightTextColor"
},
"computed": false
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 1121,
"end": 1128,
"loc": {
"start": {
"line": 31,
"column": 110
},
"end": {
"line": 31,
"column": 117
}
},
"extra": {
"rawValue": "white",
"raw": "\"white\""
},
"value": "white"
}
}
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Adding button style on keydown",
"start": 438,
"end": 471,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 37
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1181,
"end": 1214,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 37,
"column": 37
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1220,
"end": 1713,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 1220,
"end": 1712,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 50,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 1220,
"end": 1245,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 1220,
"end": 1228,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1229,
"end": 1245,
"loc": {
"start": {
"line": 38,
"column": 13
},
"end": {
"line": 38,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 1246,
"end": 1253,
"loc": {
"start": {
"line": 38,
"column": 30
},
"end": {
"line": 38,
"column": 37
}
},
"extra": {
"rawValue": "keyup",
"raw": "\"keyup\""
},
"value": "keyup"
},
{
"type": "ArrowFunctionExpression",
"start": 1255,
"end": 1711,
"loc": {
"start": {
"line": 38,
"column": 39
},
"end": {
"line": 50,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1256,
"end": 1261,
"loc": {
"start": {
"line": 38,
"column": 40
},
"end": {
"line": 38,
"column": 45
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 1266,
"end": 1711,
"loc": {
"start": {
"line": 38,
"column": 50
},
"end": {
"line": 50,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1275,
"end": 1704,
"loc": {
"start": {
"line": 39,
"column": 6
},
"end": {
"line": 49,
"column": 7
}
},
"test": {
"type": "MemberExpression",
"start": 1278,
"end": 1339,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 70
}
},
"object": {
"type": "MemberExpression",
"start": 1278,
"end": 1313,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 1278,
"end": 1305,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1278,
"end": 1282,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 1283,
"end": 1305,
"loc": {
"start": {
"line": 39,
"column": 14
},
"end": {
"line": 39,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1306,
"end": 1313,
"loc": {
"start": {
"line": 39,
"column": 37
},
"end": {
"line": 39,
"column": 44
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1314,
"end": 1339,
"loc": {
"start": {
"line": 39,
"column": 45
},
"end": {
"line": 39,
"column": 70
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1340,
"end": 1704,
"loc": {
"start": {
"line": 39,
"column": 71
},
"end": {
"line": 49,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1351,
"end": 1410,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1355,
"end": 1409,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 1355,
"end": 1368,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 25
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
},
"init": {
"type": "CallExpression",
"start": 1371,
"end": 1409,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 1371,
"end": 1402,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 1371,
"end": 1375,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 1376,
"end": 1402,
"loc": {
"start": {
"line": 40,
"column": 33
},
"end": {
"line": 40,
"column": 59
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1403,
"end": 1408,
"loc": {
"start": {
"line": 40,
"column": 60
},
"end": {
"line": 40,
"column": 65
},
"identifierName": "event"
},
"name": "event"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 1422,
"end": 1695,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 48,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 1422,
"end": 1694,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 48,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 1422,
"end": 1458,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 1422,
"end": 1449,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 1422,
"end": 1426,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1427,
"end": 1449,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 35
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1450,
"end": 1458,
"loc": {
"start": {
"line": 42,
"column": 36
},
"end": {
"line": 42,
"column": 44
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 1459,
"end": 1693,
"loc": {
"start": {
"line": 42,
"column": 45
},
"end": {
"line": 48,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1459,
"end": 1467,
"loc": {
"start": {
"line": 42,
"column": 45
},
"end": {
"line": 42,
"column": 53
},
"identifierName": "instance"
},
"name": "instance"
}
],
"body": {
"type": "BlockStatement",
"start": 1471,
"end": 1693,
"loc": {
"start": {
"line": 42,
"column": 57
},
"end": {
"line": 48,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1484,
"end": 1592,
"loc": {
"start": {
"line": 43,
"column": 10
},
"end": {
"line": 43,
"column": 118
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1488,
"end": 1591,
"loc": {
"start": {
"line": 43,
"column": 14
},
"end": {
"line": 43,
"column": 117
}
},
"id": {
"type": "Identifier",
"start": 1488,
"end": 1497,
"loc": {
"start": {
"line": 43,
"column": 14
},
"end": {
"line": 43,
"column": 23
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"init": {
"type": "LogicalExpression",
"start": 1500,
"end": 1591,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 117
}
},
"left": {
"type": "CallExpression",
"start": 1500,
"end": 1540,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 1500,
"end": 1525,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 1500,
"end": 1508,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 34
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1509,
"end": 1525,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 51
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1526,
"end": 1539,
"loc": {
"start": {
"line": 43,
"column": 52
},
"end": {
"line": 43,
"column": 65
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 1544,
"end": 1591,
"loc": {
"start": {
"line": 43,
"column": 70
},
"end": {
"line": 43,
"column": 117
}
},
"callee": {
"type": "MemberExpression",
"start": 1544,
"end": 1569,
"loc": {
"start": {
"line": 43,
"column": 70
},
"end": {
"line": 43,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 1544,
"end": 1552,
"loc": {
"start": {
"line": 43,
"column": 70
},
"end": {
"line": 43,
"column": 78
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1553,
"end": 1569,
"loc": {
"start": {
"line": 43,
"column": 79
},
"end": {
"line": 43,
"column": 95
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "TemplateLiteral",
"start": 1570,
"end": 1590,
"loc": {
"start": {
"line": 43,
"column": 96
},
"end": {
"line": 43,
"column": 116
}
},
"expressions": [
{
"type": "Identifier",
"start": 1574,
"end": 1587,
"loc": {
"start": {
"line": 43,
"column": 100
},
"end": {
"line": 43,
"column": 113
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 1571,
"end": 1572,
"loc": {
"start": {
"line": 43,
"column": 97
},
"end": {
"line": 43,
"column": 98
}
},
"value": {
"raw": "{",
"cooked": "{"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 1588,
"end": 1589,
"loc": {
"start": {
"line": 43,
"column": 114
},
"end": {
"line": 43,
"column": 115
}
},
"value": {
"raw": "}",
"cooked": "}"
},
"tail": true
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1606,
"end": 1682,
"loc": {
"start": {
"line": 45,
"column": 10
},
"end": {
"line": 47,
"column": 11
}
},
"test": {
"type": "Identifier",
"start": 1609,
"end": 1618,
"loc": {
"start": {
"line": 45,
"column": 13
},
"end": {
"line": 45,
"column": 22
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"consequent": {
"type": "BlockStatement",
"start": 1619,
"end": 1682,
"loc": {
"start": {
"line": 45,
"column": 23
},
"end": {
"line": 47,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1634,
"end": 1669,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 47
}
},
"expression": {
"type": "CallExpression",
"start": 1634,
"end": 1668,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 1634,
"end": 1659,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 1634,
"end": 1643,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1644,
"end": 1659,
"loc": {
"start": {
"line": 46,
"column": 22
},
"end": {
"line": 46,
"column": 37
},
"identifierName": "removeAttribute"
},
"name": "removeAttribute"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1660,
"end": 1667,
"loc": {
"start": {
"line": 46,
"column": 38
},
"end": {
"line": 46,
"column": 45
}
},
"extra": {
"rawValue": "style",
"raw": "\"style\""
},
"value": "style"
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1181,
"end": 1214,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 37,
"column": 37
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 350,
"end": 398,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 19,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ",
"start": 1724,
"end": 1871,
"loc": {
"start": {
"line": 53,
"column": 2
},
"end": {
"line": 56,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 1875,
"end": 2612,
"loc": {
"start": {
"line": 57,
"column": 2
},
"end": {
"line": 85,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1875,
"end": 1901,
"loc": {
"start": {
"line": 57,
"column": 2
},
"end": {
"line": 57,
"column": 28
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 1904,
"end": 2612,
"loc": {
"start": {
"line": 57,
"column": 31
},
"end": {
"line": 85,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1905,
"end": 1910,
"loc": {
"start": {
"line": 57,
"column": 32
},
"end": {
"line": 57,
"column": 37
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 1915,
"end": 2612,
"loc": {
"start": {
"line": 57,
"column": 42
},
"end": {
"line": 85,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1922,
"end": 1933,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 15
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1926,
"end": 1932,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 14
}
},
"id": {
"type": "Identifier",
"start": 1926,
"end": 1932,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 14
},
"identifierName": "output"
},
"name": "output"
},
"init": null
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1941,
"end": 2302,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 72,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 1952,
"end": 2218,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 67,
"column": 33
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2180,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 66,
"column": 32
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2143,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 65,
"column": 36
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2102,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 64,
"column": 38
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2059,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 63,
"column": 34
}
},
"left": {
"type": "LogicalExpression",
"start": 1952,
"end": 2020,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 62,
"column": 34
}
},
"left": {
"type": "CallExpression",
"start": 1952,
"end": 1981,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 1952,
"end": 1971,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 1952,
"end": 1962,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 1952,
"end": 1957,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1958,
"end": 1962,
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1963,
"end": 1971,
"loc": {
"start": {
"line": 61,
"column": 17
},
"end": {
"line": 61,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1972,
"end": 1980,
"loc": {
"start": {
"line": 61,
"column": 26
},
"end": {
"line": 61,
"column": 34
}
},
"extra": {
"rawValue": "Numpad",
"raw": "\"Numpad\""
},
"value": "Numpad"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 1992,
"end": 2020,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 1992,
"end": 2011,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 1992,
"end": 2002,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 1992,
"end": 1997,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1998,
"end": 2002,
"loc": {
"start": {
"line": 62,
"column": 12
},
"end": {
"line": 62,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2003,
"end": 2011,
"loc": {
"start": {
"line": 62,
"column": 17
},
"end": {
"line": 62,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2012,
"end": 2019,
"loc": {
"start": {
"line": 62,
"column": 26
},
"end": {
"line": 62,
"column": 33
}
},
"extra": {
"rawValue": "Shift",
"raw": "\"Shift\""
},
"value": "Shift"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2031,
"end": 2059,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 2031,
"end": 2050,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2031,
"end": 2041,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2031,
"end": 2036,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2037,
"end": 2041,
"loc": {
"start": {
"line": 63,
"column": 12
},
"end": {
"line": 63,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2042,
"end": 2050,
"loc": {
"start": {
"line": 63,
"column": 17
},
"end": {
"line": 63,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2051,
"end": 2058,
"loc": {
"start": {
"line": 63,
"column": 26
},
"end": {
"line": 63,
"column": 33
}
},
"extra": {
"rawValue": "Space",
"raw": "\"Space\""
},
"value": "Space"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2070,
"end": 2102,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 2070,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2070,
"end": 2080,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2070,
"end": 2075,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2076,
"end": 2080,
"loc": {
"start": {
"line": 64,
"column": 12
},
"end": {
"line": 64,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2081,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 17
},
"end": {
"line": 64,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2090,
"end": 2101,
"loc": {
"start": {
"line": 64,
"column": 26
},
"end": {
"line": 64,
"column": 37
}
},
"extra": {
"rawValue": "Backspace",
"raw": "\"Backspace\""
},
"value": "Backspace"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2113,
"end": 2143,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 2113,
"end": 2132,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2113,
"end": 2123,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2113,
"end": 2118,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2119,
"end": 2123,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2124,
"end": 2132,
"loc": {
"start": {
"line": 65,
"column": 17
},
"end": {
"line": 65,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2133,
"end": 2142,
"loc": {
"start": {
"line": 65,
"column": 26
},
"end": {
"line": 65,
"column": 35
}
},
"extra": {
"rawValue": "Control",
"raw": "\"Control\""
},
"value": "Control"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2154,
"end": 2180,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 2154,
"end": 2173,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2154,
"end": 2164,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2154,
"end": 2159,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2160,
"end": 2164,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2165,
"end": 2173,
"loc": {
"start": {
"line": 66,
"column": 17
},
"end": {
"line": 66,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2174,
"end": 2179,
"loc": {
"start": {
"line": 66,
"column": 26
},
"end": {
"line": 66,
"column": 31
}
},
"extra": {
"rawValue": "Alt",
"raw": "\"Alt\""
},
"value": "Alt"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2191,
"end": 2218,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 2191,
"end": 2210,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2191,
"end": 2201,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2191,
"end": 2196,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2197,
"end": 2201,
"loc": {
"start": {
"line": 67,
"column": 12
},
"end": {
"line": 67,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2202,
"end": 2210,
"loc": {
"start": {
"line": 67,
"column": 17
},
"end": {
"line": 67,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2211,
"end": 2217,
"loc": {
"start": {
"line": 67,
"column": 26
},
"end": {
"line": 67,
"column": 32
}
},
"extra": {
"rawValue": "Meta",
"raw": "\"Meta\""
},
"value": "Meta"
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 2225,
"end": 2261,
"loc": {
"start": {
"line": 68,
"column": 5
},
"end": {
"line": 70,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2234,
"end": 2254,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2234,
"end": 2253,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 25
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2234,
"end": 2240,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "MemberExpression",
"start": 2243,
"end": 2253,
"loc": {
"start": {
"line": 69,
"column": 15
},
"end": {
"line": 69,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 2243,
"end": 2248,
"loc": {
"start": {
"line": 69,
"column": 15
},
"end": {
"line": 69,
"column": 20
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2249,
"end": 2253,
"loc": {
"start": {
"line": 69,
"column": 21
},
"end": {
"line": 69,
"column": 25
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2267,
"end": 2302,
"loc": {
"start": {
"line": 70,
"column": 11
},
"end": {
"line": 72,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2276,
"end": 2295,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2276,
"end": 2294,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 24
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2276,
"end": 2282,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "MemberExpression",
"start": 2285,
"end": 2294,
"loc": {
"start": {
"line": 71,
"column": 15
},
"end": {
"line": 71,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 2285,
"end": 2290,
"loc": {
"start": {
"line": 71,
"column": 15
},
"end": {
"line": 71,
"column": 20
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2291,
"end": 2294,
"loc": {
"start": {
"line": 71,
"column": 21
},
"end": {
"line": 71,
"column": 24
},
"identifierName": "key"
},
"name": "key"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ",
"start": 2310,
"end": 2379,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
]
},
{
"type": "IfStatement",
"start": 2385,
"end": 2585,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 82,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 2397,
"end": 2531,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 79,
"column": 98
}
},
"left": {
"type": "BinaryExpression",
"start": 2397,
"end": 2428,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 37
}
},
"left": {
"type": "Identifier",
"start": 2397,
"end": 2403,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 12
},
"identifierName": "output"
},
"name": "output",
"leadingComments": null
},
"operator": "!==",
"right": {
"type": "CallExpression",
"start": 2408,
"end": 2428,
"loc": {
"start": {
"line": 78,
"column": 17
},
"end": {
"line": 78,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 2408,
"end": 2426,
"loc": {
"start": {
"line": 78,
"column": 17
},
"end": {
"line": 78,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 2408,
"end": 2414,
"loc": {
"start": {
"line": 78,
"column": 17
},
"end": {
"line": 78,
"column": 23
},
"identifierName": "output"
},
"name": "output"
},
"property": {
"type": "Identifier",
"start": 2415,
"end": 2426,
"loc": {
"start": {
"line": 78,
"column": 24
},
"end": {
"line": 78,
"column": 35
},
"identifierName": "toUpperCase"
},
"name": "toUpperCase"
},
"computed": false
},
"arguments": []
},
"leadingComments": null
},
"operator": "||",
"right": {
"type": "LogicalExpression",
"start": 2440,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 97
}
},
"left": {
"type": "LogicalExpression",
"start": 2440,
"end": 2504,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 71
}
},
"left": {
"type": "BinaryExpression",
"start": 2440,
"end": 2461,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 28
}
},
"left": {
"type": "MemberExpression",
"start": 2440,
"end": 2453,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 20
}
},
"object": {
"type": "MemberExpression",
"start": 2440,
"end": 2450,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 2440,
"end": 2445,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 12
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2446,
"end": 2450,
"loc": {
"start": {
"line": 79,
"column": 13
},
"end": {
"line": 79,
"column": 17
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "NumericLiteral",
"start": 2451,
"end": 2452,
"loc": {
"start": {
"line": 79,
"column": 18
},
"end": {
"line": 79,
"column": 19
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 2458,
"end": 2461,
"loc": {
"start": {
"line": 79,
"column": 25
},
"end": {
"line": 79,
"column": 28
}
},
"extra": {
"rawValue": "F",
"raw": "\"F\""
},
"value": "F"
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 2465,
"end": 2504,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 71
}
},
"callee": {
"type": "MemberExpression",
"start": 2465,
"end": 2481,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 48
}
},
"object": {
"type": "Identifier",
"start": 2465,
"end": 2471,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 38
},
"identifierName": "Number"
},
"name": "Number"
},
"property": {
"type": "Identifier",
"start": 2472,
"end": 2481,
"loc": {
"start": {
"line": 79,
"column": 39
},
"end": {
"line": 79,
"column": 48
},
"identifierName": "isInteger"
},
"name": "isInteger"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2482,
"end": 2503,
"loc": {
"start": {
"line": 79,
"column": 49
},
"end": {
"line": 79,
"column": 70
}
},
"callee": {
"type": "Identifier",
"start": 2482,
"end": 2488,
"loc": {
"start": {
"line": 79,
"column": 49
},
"end": {
"line": 79,
"column": 55
},
"identifierName": "Number"
},
"name": "Number"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2489,
"end": 2502,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 69
}
},
"object": {
"type": "MemberExpression",
"start": 2489,
"end": 2499,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 66
}
},
"object": {
"type": "Identifier",
"start": 2489,
"end": 2494,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 61
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2495,
"end": 2499,
"loc": {
"start": {
"line": 79,
"column": 62
},
"end": {
"line": 79,
"column": 66
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "NumericLiteral",
"start": 2500,
"end": 2501,
"loc": {
"start": {
"line": 79,
"column": 67
},
"end": {
"line": 79,
"column": 68
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"computed": true
}
]
}
]
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 2508,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 97
}
},
"left": {
"type": "MemberExpression",
"start": 2508,
"end": 2525,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 92
}
},
"object": {
"type": "MemberExpression",
"start": 2508,
"end": 2518,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 85
}
},
"object": {
"type": "Identifier",
"start": 2508,
"end": 2513,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 80
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2514,
"end": 2518,
"loc": {
"start": {
"line": 79,
"column": 81
},
"end": {
"line": 79,
"column": 85
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2519,
"end": 2525,
"loc": {
"start": {
"line": 79,
"column": 86
},
"end": {
"line": 79,
"column": 92
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "NumericLiteral",
"start": 2529,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 96
},
"end": {
"line": 79,
"column": 97
}
},
"extra": {
"rawValue": 3,
"raw": "3"
},
"value": 3
}
},
"extra": {
"parenthesized": true,
"parenStart": 2439
}
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 2539,
"end": 2585,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 82,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2548,
"end": 2578,
"loc": {
"start": {
"line": 81,
"column": 6
},
"end": {
"line": 81,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2548,
"end": 2577,
"loc": {
"start": {
"line": 81,
"column": 6
},
"end": {
"line": 81,
"column": 35
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2548,
"end": 2554,
"loc": {
"start": {
"line": 81,
"column": 6
},
"end": {
"line": 81,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "CallExpression",
"start": 2557,
"end": 2577,
"loc": {
"start": {
"line": 81,
"column": 15
},
"end": {
"line": 81,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 2557,
"end": 2575,
"loc": {
"start": {
"line": 81,
"column": 15
},
"end": {
"line": 81,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 2557,
"end": 2563,
"loc": {
"start": {
"line": 81,
"column": 15
},
"end": {
"line": 81,
"column": 21
},
"identifierName": "output"
},
"name": "output"
},
"property": {
"type": "Identifier",
"start": 2564,
"end": 2575,
"loc": {
"start": {
"line": 81,
"column": 22
},
"end": {
"line": 81,
"column": 33
},
"identifierName": "toLowerCase"
},
"name": "toLowerCase"
},
"computed": false
},
"arguments": []
}
}
}
],
"directives": []
},
"alternate": null,
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ",
"start": 2310,
"end": 2379,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
]
},
{
"type": "ReturnStatement",
"start": 2593,
"end": 2607,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 2600,
"end": 2606,
"loc": {
"start": {
"line": 84,
"column": 11
},
"end": {
"line": 84,
"column": 17
},
"identifierName": "output"
},
"name": "output"
}
}
],
"directives": []
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ",
"start": 1724,
"end": 1871,
"loc": {
"start": {
"line": 53,
"column": 2
},
"end": {
"line": 56,
"column": 5
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Physical Keyboard Service\r\n ",
"start": 0,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
}
],
"__PseudoExport__": false,
"trailingComments": []
},
"leadingComments": null
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * Physical Keyboard Service\r\n ",
"start": 0,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ",
"start": 68,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 7,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @type {object} A simple-keyboard instance\r\n ",
"start": 182,
"end": 244,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 350,
"end": 398,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 19,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " Adding button style on keydown",
"start": 438,
"end": 471,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1181,
"end": 1214,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 37,
"column": 37
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ",
"start": 1724,
"end": 1871,
"loc": {
"start": {
"line": 53,
"column": 2
},
"end": {
"line": 56,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ",
"start": 2310,
"end": 2379,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
],
"tokens": [
{
"type": "CommentBlock",
"value": "*\r\n * Physical Keyboard Service\r\n ",
"start": 0,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 40,
"end": 45,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "PhysicalKeyboard",
"start": 46,
"end": 62,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 63,
"end": 64,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 4,
"column": 24
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ",
"start": 68,
"end": 136,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 7,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 140,
"end": 151,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 8,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 151,
"end": 152,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 152,
"end": 174,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 174,
"end": 175,
"loc": {
"start": {
"line": 8,
"column": 36
},
"end": {
"line": 8,
"column": 37
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 175,
"end": 176,
"loc": {
"start": {
"line": 8,
"column": 37
},
"end": {
"line": 8,
"column": 38
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @type {object} A simple-keyboard instance\r\n ",
"start": 182,
"end": 244,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 7
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 250,
"end": 254,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 254,
"end": 255,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 255,
"end": 277,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 12,
"column": 31
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 278,
"end": 279,
"loc": {
"start": {
"line": 12,
"column": 32
},
"end": {
"line": 12,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 280,
"end": 302,
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 56
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 302,
"end": 303,
"loc": {
"start": {
"line": 12,
"column": 56
},
"end": {
"line": 12,
"column": 57
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 311,
"end": 315,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 315,
"end": 316,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initKeyboardListener",
"start": 316,
"end": 336,
"loc": {
"start": {
"line": 14,
"column": 9
},
"end": {
"line": 14,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 336,
"end": 337,
"loc": {
"start": {
"line": 14,
"column": 29
},
"end": {
"line": 14,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 337,
"end": 338,
"loc": {
"start": {
"line": 14,
"column": 30
},
"end": {
"line": 14,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 338,
"end": 339,
"loc": {
"start": {
"line": 14,
"column": 31
},
"end": {
"line": 14,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 343,
"end": 344,
"loc": {
"start": {
"line": 15,
"column": 2
},
"end": {
"line": 15,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 350,
"end": 398,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 19,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initKeyboardListener",
"start": 402,
"end": 422,
"loc": {
"start": {
"line": 20,
"column": 2
},
"end": {
"line": 20,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 423,
"end": 424,
"loc": {
"start": {
"line": 20,
"column": 23
},
"end": {
"line": 20,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 425,
"end": 426,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 426,
"end": 427,
"loc": {
"start": {
"line": 20,
"column": 26
},
"end": {
"line": 20,
"column": 27
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 428,
"end": 430,
"loc": {
"start": {
"line": 20,
"column": 28
},
"end": {
"line": 20,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 431,
"end": 432,
"loc": {
"start": {
"line": 20,
"column": 31
},
"end": {
"line": 20,
"column": 32
}
}
},
{
"type": "CommentLine",
"value": " Adding button style on keydown",
"start": 438,
"end": 471,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 477,
"end": 485,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 485,
"end": 486,
"loc": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 22,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEventListener",
"start": 486,
"end": 502,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 502,
"end": 503,
"loc": {
"start": {
"line": 22,
"column": 29
},
"end": {
"line": 22,
"column": 30
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "keydown",
"start": 503,
"end": 512,
"loc": {
"start": {
"line": 22,
"column": 30
},
"end": {
"line": 22,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 512,
"end": 513,
"loc": {
"start": {
"line": 22,
"column": 39
},
"end": {
"line": 22,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 514,
"end": 515,
"loc": {
"start": {
"line": 22,
"column": 41
},
"end": {
"line": 22,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 515,
"end": 520,
"loc": {
"start": {
"line": 22,
"column": 42
},
"end": {
"line": 22,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 520,
"end": 521,
"loc": {
"start": {
"line": 22,
"column": 47
},
"end": {
"line": 22,
"column": 48
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 522,
"end": 524,
"loc": {
"start": {
"line": 22,
"column": 49
},
"end": {
"line": 22,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 525,
"end": 526,
"loc": {
"start": {
"line": 22,
"column": 52
},
"end": {
"line": 22,
"column": 53
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 534,
"end": 536,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 536,
"end": 537,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 9
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 537,
"end": 541,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 541,
"end": 542,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 542,
"end": 564,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 564,
"end": 565,
"loc": {
"start": {
"line": 23,
"column": 36
},
"end": {
"line": 23,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 565,
"end": 572,
"loc": {
"start": {
"line": 23,
"column": 37
},
"end": {
"line": 23,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 572,
"end": 573,
"loc": {
"start": {
"line": 23,
"column": 44
},
"end": {
"line": 23,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlight",
"start": 573,
"end": 598,
"loc": {
"start": {
"line": 23,
"column": 45
},
"end": {
"line": 23,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 598,
"end": 599,
"loc": {
"start": {
"line": 23,
"column": 70
},
"end": {
"line": 23,
"column": 71
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 599,
"end": 600,
"loc": {
"start": {
"line": 23,
"column": 71
},
"end": {
"line": 23,
"column": 72
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 610,
"end": 613,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 614,
"end": 627,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 628,
"end": 629,
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 24,
"column": 27
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 630,
"end": 634,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 634,
"end": 635,
"loc": {
"start": {
"line": 24,
"column": 32
},
"end": {
"line": 24,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSimpleKeyboardLayoutKey",
"start": 635,
"end": 661,
"loc": {
"start": {
"line": 24,
"column": 33
},
"end": {
"line": 24,
"column": 59
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 661,
"end": 662,
"loc": {
"start": {
"line": 24,
"column": 59
},
"end": {
"line": 24,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 662,
"end": 667,
"loc": {
"start": {
"line": 24,
"column": 60
},
"end": {
"line": 24,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 667,
"end": 668,
"loc": {
"start": {
"line": 24,
"column": 65
},
"end": {
"line": 24,
"column": 66
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 668,
"end": 669,
"loc": {
"start": {
"line": 24,
"column": 66
},
"end": {
"line": 24,
"column": 67
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 681,
"end": 685,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 685,
"end": 686,
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 686,
"end": 708,
"loc": {
"start": {
"line": 26,
"column": 13
},
"end": {
"line": 26,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 708,
"end": 709,
"loc": {
"start": {
"line": 26,
"column": 35
},
"end": {
"line": 26,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 709,
"end": 717,
"loc": {
"start": {
"line": 26,
"column": 36
},
"end": {
"line": 26,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 717,
"end": 718,
"loc": {
"start": {
"line": 26,
"column": 44
},
"end": {
"line": 26,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 718,
"end": 726,
"loc": {
"start": {
"line": 26,
"column": 45
},
"end": {
"line": 26,
"column": 53
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 727,
"end": 729,
"loc": {
"start": {
"line": 26,
"column": 54
},
"end": {
"line": 26,
"column": 56
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 730,
"end": 731,
"loc": {
"start": {
"line": 26,
"column": 57
},
"end": {
"line": 26,
"column": 58
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 743,
"end": 746,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 747,
"end": 756,
"loc": {
"start": {
"line": 27,
"column": 14
},
"end": {
"line": 27,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 757,
"end": 758,
"loc": {
"start": {
"line": 27,
"column": 24
},
"end": {
"line": 27,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 759,
"end": 767,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 767,
"end": 768,
"loc": {
"start": {
"line": 27,
"column": 34
},
"end": {
"line": 27,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getButtonElement",
"start": 768,
"end": 784,
"loc": {
"start": {
"line": 27,
"column": 35
},
"end": {
"line": 27,
"column": 51
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 784,
"end": 785,
"loc": {
"start": {
"line": 27,
"column": 51
},
"end": {
"line": 27,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 785,
"end": 798,
"loc": {
"start": {
"line": 27,
"column": 52
},
"end": {
"line": 27,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 798,
"end": 799,
"loc": {
"start": {
"line": 27,
"column": 65
},
"end": {
"line": 27,
"column": 66
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 800,
"end": 802,
"loc": {
"start": {
"line": 27,
"column": 67
},
"end": {
"line": 27,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 803,
"end": 811,
"loc": {
"start": {
"line": 27,
"column": 70
},
"end": {
"line": 27,
"column": 78
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 811,
"end": 812,
"loc": {
"start": {
"line": 27,
"column": 78
},
"end": {
"line": 27,
"column": 79
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getButtonElement",
"start": 812,
"end": 828,
"loc": {
"start": {
"line": 27,
"column": 79
},
"end": {
"line": 27,
"column": 95
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 828,
"end": 829,
"loc": {
"start": {
"line": 27,
"column": 95
},
"end": {
"line": 27,
"column": 96
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 829,
"end": 830,
"loc": {
"start": {
"line": 27,
"column": 96
},
"end": {
"line": 27,
"column": 97
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "{",
"start": 830,
"end": 831,
"loc": {
"start": {
"line": 27,
"column": 97
},
"end": {
"line": 27,
"column": 98
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 831,
"end": 833,
"loc": {
"start": {
"line": 27,
"column": 98
},
"end": {
"line": 27,
"column": 100
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 833,
"end": 846,
"loc": {
"start": {
"line": 27,
"column": 100
},
"end": {
"line": 27,
"column": 113
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 846,
"end": 847,
"loc": {
"start": {
"line": 27,
"column": 113
},
"end": {
"line": 27,
"column": 114
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "}",
"start": 847,
"end": 848,
"loc": {
"start": {
"line": 27,
"column": 114
},
"end": {
"line": 27,
"column": 115
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 848,
"end": 849,
"loc": {
"start": {
"line": 27,
"column": 115
},
"end": {
"line": 27,
"column": 116
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 849,
"end": 850,
"loc": {
"start": {
"line": 27,
"column": 116
},
"end": {
"line": 27,
"column": 117
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 850,
"end": 851,
"loc": {
"start": {
"line": 27,
"column": 117
},
"end": {
"line": 27,
"column": 118
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 865,
"end": 867,
"loc": {
"start": {
"line": 29,
"column": 10
},
"end": {
"line": 29,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 867,
"end": 868,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 868,
"end": 877,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 877,
"end": 878,
"loc": {
"start": {
"line": 29,
"column": 22
},
"end": {
"line": 29,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 878,
"end": 879,
"loc": {
"start": {
"line": 29,
"column": 23
},
"end": {
"line": 29,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 893,
"end": 902,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 902,
"end": 903,
"loc": {
"start": {
"line": 30,
"column": 21
},
"end": {
"line": 30,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "style",
"start": 903,
"end": 908,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 908,
"end": 909,
"loc": {
"start": {
"line": 30,
"column": 27
},
"end": {
"line": 30,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "backgroundColor",
"start": 909,
"end": 924,
"loc": {
"start": {
"line": 30,
"column": 28
},
"end": {
"line": 30,
"column": 43
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 925,
"end": 926,
"loc": {
"start": {
"line": 30,
"column": 44
},
"end": {
"line": 30,
"column": 45
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 927,
"end": 931,
"loc": {
"start": {
"line": 30,
"column": 46
},
"end": {
"line": 30,
"column": 50
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 931,
"end": 932,
"loc": {
"start": {
"line": 30,
"column": 50
},
"end": {
"line": 30,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 932,
"end": 954,
"loc": {
"start": {
"line": 30,
"column": 51
},
"end": {
"line": 30,
"column": 73
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 954,
"end": 955,
"loc": {
"start": {
"line": 30,
"column": 73
},
"end": {
"line": 30,
"column": 74
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 955,
"end": 962,
"loc": {
"start": {
"line": 30,
"column": 74
},
"end": {
"line": 30,
"column": 81
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 962,
"end": 963,
"loc": {
"start": {
"line": 30,
"column": 81
},
"end": {
"line": 30,
"column": 82
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlightBgColor",
"start": 963,
"end": 995,
"loc": {
"start": {
"line": 30,
"column": 82
},
"end": {
"line": 30,
"column": 114
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 996,
"end": 998,
"loc": {
"start": {
"line": 30,
"column": 115
},
"end": {
"line": 30,
"column": 117
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "#9ab4d0",
"start": 999,
"end": 1008,
"loc": {
"start": {
"line": 30,
"column": 118
},
"end": {
"line": 30,
"column": 127
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1008,
"end": 1009,
"loc": {
"start": {
"line": 30,
"column": 127
},
"end": {
"line": 30,
"column": 128
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1023,
"end": 1032,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1032,
"end": 1033,
"loc": {
"start": {
"line": 31,
"column": 21
},
"end": {
"line": 31,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "style",
"start": 1033,
"end": 1038,
"loc": {
"start": {
"line": 31,
"column": 22
},
"end": {
"line": 31,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1038,
"end": 1039,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 31,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 1039,
"end": 1044,
"loc": {
"start": {
"line": 31,
"column": 28
},
"end": {
"line": 31,
"column": 33
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1045,
"end": 1046,
"loc": {
"start": {
"line": 31,
"column": 34
},
"end": {
"line": 31,
"column": 35
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1047,
"end": 1051,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1051,
"end": 1052,
"loc": {
"start": {
"line": 31,
"column": 40
},
"end": {
"line": 31,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 1052,
"end": 1074,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 63
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1074,
"end": 1075,
"loc": {
"start": {
"line": 31,
"column": 63
},
"end": {
"line": 31,
"column": 64
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 1075,
"end": 1082,
"loc": {
"start": {
"line": 31,
"column": 64
},
"end": {
"line": 31,
"column": 71
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1082,
"end": 1083,
"loc": {
"start": {
"line": 31,
"column": 71
},
"end": {
"line": 31,
"column": 72
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlightTextColor",
"start": 1083,
"end": 1117,
"loc": {
"start": {
"line": 31,
"column": 72
},
"end": {
"line": 31,
"column": 106
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 1118,
"end": 1120,
"loc": {
"start": {
"line": 31,
"column": 107
},
"end": {
"line": 31,
"column": 109
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "white",
"start": 1121,
"end": 1128,
"loc": {
"start": {
"line": 31,
"column": 110
},
"end": {
"line": 31,
"column": 117
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1128,
"end": 1129,
"loc": {
"start": {
"line": 31,
"column": 117
},
"end": {
"line": 31,
"column": 118
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1141,
"end": 1142,
"loc": {
"start": {
"line": 32,
"column": 10
},
"end": {
"line": 32,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1152,
"end": 1153,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1153,
"end": 1154,
"loc": {
"start": {
"line": 33,
"column": 9
},
"end": {
"line": 33,
"column": 10
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1154,
"end": 1155,
"loc": {
"start": {
"line": 33,
"column": 10
},
"end": {
"line": 33,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1163,
"end": 1164,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1170,
"end": 1171,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 35,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1171,
"end": 1172,
"loc": {
"start": {
"line": 35,
"column": 5
},
"end": {
"line": 35,
"column": 6
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1172,
"end": 1173,
"loc": {
"start": {
"line": 35,
"column": 6
},
"end": {
"line": 35,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1181,
"end": 1214,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 37,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 1220,
"end": 1228,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1228,
"end": 1229,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEventListener",
"start": 1229,
"end": 1245,
"loc": {
"start": {
"line": 38,
"column": 13
},
"end": {
"line": 38,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1245,
"end": 1246,
"loc": {
"start": {
"line": 38,
"column": 29
},
"end": {
"line": 38,
"column": 30
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "keyup",
"start": 1246,
"end": 1253,
"loc": {
"start": {
"line": 38,
"column": 30
},
"end": {
"line": 38,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1253,
"end": 1254,
"loc": {
"start": {
"line": 38,
"column": 37
},
"end": {
"line": 38,
"column": 38
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1255,
"end": 1256,
"loc": {
"start": {
"line": 38,
"column": 39
},
"end": {
"line": 38,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1256,
"end": 1261,
"loc": {
"start": {
"line": 38,
"column": 40
},
"end": {
"line": 38,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1261,
"end": 1262,
"loc": {
"start": {
"line": 38,
"column": 45
},
"end": {
"line": 38,
"column": 46
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1263,
"end": 1265,
"loc": {
"start": {
"line": 38,
"column": 47
},
"end": {
"line": 38,
"column": 49
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1266,
"end": 1267,
"loc": {
"start": {
"line": 38,
"column": 50
},
"end": {
"line": 38,
"column": 51
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1275,
"end": 1277,
"loc": {
"start": {
"line": 39,
"column": 6
},
"end": {
"line": 39,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1277,
"end": 1278,
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 9
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1278,
"end": 1282,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1282,
"end": 1283,
"loc": {
"start": {
"line": 39,
"column": 13
},
"end": {
"line": 39,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 1283,
"end": 1305,
"loc": {
"start": {
"line": 39,
"column": 14
},
"end": {
"line": 39,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1305,
"end": 1306,
"loc": {
"start": {
"line": 39,
"column": 36
},
"end": {
"line": 39,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 1306,
"end": 1313,
"loc": {
"start": {
"line": 39,
"column": 37
},
"end": {
"line": 39,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1313,
"end": 1314,
"loc": {
"start": {
"line": 39,
"column": 44
},
"end": {
"line": 39,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlight",
"start": 1314,
"end": 1339,
"loc": {
"start": {
"line": 39,
"column": 45
},
"end": {
"line": 39,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1339,
"end": 1340,
"loc": {
"start": {
"line": 39,
"column": 70
},
"end": {
"line": 39,
"column": 71
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1340,
"end": 1341,
"loc": {
"start": {
"line": 39,
"column": 71
},
"end": {
"line": 39,
"column": 72
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 1351,
"end": 1354,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 1355,
"end": 1368,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1369,
"end": 1370,
"loc": {
"start": {
"line": 40,
"column": 26
},
"end": {
"line": 40,
"column": 27
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1371,
"end": 1375,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1375,
"end": 1376,
"loc": {
"start": {
"line": 40,
"column": 32
},
"end": {
"line": 40,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSimpleKeyboardLayoutKey",
"start": 1376,
"end": 1402,
"loc": {
"start": {
"line": 40,
"column": 33
},
"end": {
"line": 40,
"column": 59
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1402,
"end": 1403,
"loc": {
"start": {
"line": 40,
"column": 59
},
"end": {
"line": 40,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1403,
"end": 1408,
"loc": {
"start": {
"line": 40,
"column": 60
},
"end": {
"line": 40,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1408,
"end": 1409,
"loc": {
"start": {
"line": 40,
"column": 65
},
"end": {
"line": 40,
"column": 66
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1409,
"end": 1410,
"loc": {
"start": {
"line": 40,
"column": 66
},
"end": {
"line": 40,
"column": 67
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1422,
"end": 1426,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1426,
"end": 1427,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 1427,
"end": 1449,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1449,
"end": 1450,
"loc": {
"start": {
"line": 42,
"column": 35
},
"end": {
"line": 42,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 1450,
"end": 1458,
"loc": {
"start": {
"line": 42,
"column": 36
},
"end": {
"line": 42,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1458,
"end": 1459,
"loc": {
"start": {
"line": 42,
"column": 44
},
"end": {
"line": 42,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 1459,
"end": 1467,
"loc": {
"start": {
"line": 42,
"column": 45
},
"end": {
"line": 42,
"column": 53
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1468,
"end": 1470,
"loc": {
"start": {
"line": 42,
"column": 54
},
"end": {
"line": 42,
"column": 56
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1471,
"end": 1472,
"loc": {
"start": {
"line": 42,
"column": 57
},
"end": {
"line": 42,
"column": 58
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 1484,
"end": 1487,
"loc": {
"start": {
"line": 43,
"column": 10
},
"end": {
"line": 43,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1488,
"end": 1497,
"loc": {
"start": {
"line": 43,
"column": 14
},
"end": {
"line": 43,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1498,
"end": 1499,
"loc": {
"start": {
"line": 43,
"column": 24
},
"end": {
"line": 43,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 1500,
"end": 1508,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1508,
"end": 1509,
"loc": {
"start": {
"line": 43,
"column": 34
},
"end": {
"line": 43,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getButtonElement",
"start": 1509,
"end": 1525,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 51
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1525,
"end": 1526,
"loc": {
"start": {
"line": 43,
"column": 51
},
"end": {
"line": 43,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 1526,
"end": 1539,
"loc": {
"start": {
"line": 43,
"column": 52
},
"end": {
"line": 43,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1539,
"end": 1540,
"loc": {
"start": {
"line": 43,
"column": 65
},
"end": {
"line": 43,
"column": 66
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 1541,
"end": 1543,
"loc": {
"start": {
"line": 43,
"column": 67
},
"end": {
"line": 43,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 1544,
"end": 1552,
"loc": {
"start": {
"line": 43,
"column": 70
},
"end": {
"line": 43,
"column": 78
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1552,
"end": 1553,
"loc": {
"start": {
"line": 43,
"column": 78
},
"end": {
"line": 43,
"column": 79
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getButtonElement",
"start": 1553,
"end": 1569,
"loc": {
"start": {
"line": 43,
"column": 79
},
"end": {
"line": 43,
"column": 95
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1569,
"end": 1570,
"loc": {
"start": {
"line": 43,
"column": 95
},
"end": {
"line": 43,
"column": 96
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1570,
"end": 1571,
"loc": {
"start": {
"line": 43,
"column": 96
},
"end": {
"line": 43,
"column": 97
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "{",
"start": 1571,
"end": 1572,
"loc": {
"start": {
"line": 43,
"column": 97
},
"end": {
"line": 43,
"column": 98
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1572,
"end": 1574,
"loc": {
"start": {
"line": 43,
"column": 98
},
"end": {
"line": 43,
"column": 100
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 1574,
"end": 1587,
"loc": {
"start": {
"line": 43,
"column": 100
},
"end": {
"line": 43,
"column": 113
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1587,
"end": 1588,
"loc": {
"start": {
"line": 43,
"column": 113
},
"end": {
"line": 43,
"column": 114
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "}",
"start": 1588,
"end": 1589,
"loc": {
"start": {
"line": 43,
"column": 114
},
"end": {
"line": 43,
"column": 115
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1589,
"end": 1590,
"loc": {
"start": {
"line": 43,
"column": 115
},
"end": {
"line": 43,
"column": 116
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1590,
"end": 1591,
"loc": {
"start": {
"line": 43,
"column": 116
},
"end": {
"line": 43,
"column": 117
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1591,
"end": 1592,
"loc": {
"start": {
"line": 43,
"column": 117
},
"end": {
"line": 43,
"column": 118
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1606,
"end": 1608,
"loc": {
"start": {
"line": 45,
"column": 10
},
"end": {
"line": 45,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1608,
"end": 1609,
"loc": {
"start": {
"line": 45,
"column": 12
},
"end": {
"line": 45,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1609,
"end": 1618,
"loc": {
"start": {
"line": 45,
"column": 13
},
"end": {
"line": 45,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1618,
"end": 1619,
"loc": {
"start": {
"line": 45,
"column": 22
},
"end": {
"line": 45,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1619,
"end": 1620,
"loc": {
"start": {
"line": 45,
"column": 23
},
"end": {
"line": 45,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1634,
"end": 1643,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1643,
"end": 1644,
"loc": {
"start": {
"line": 46,
"column": 21
},
"end": {
"line": 46,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeAttribute",
"start": 1644,
"end": 1659,
"loc": {
"start": {
"line": 46,
"column": 22
},
"end": {
"line": 46,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1659,
"end": 1660,
"loc": {
"start": {
"line": 46,
"column": 37
},
"end": {
"line": 46,
"column": 38
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "style",
"start": 1660,
"end": 1667,
"loc": {
"start": {
"line": 46,
"column": 38
},
"end": {
"line": 46,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1667,
"end": 1668,
"loc": {
"start": {
"line": 46,
"column": 45
},
"end": {
"line": 46,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1668,
"end": 1669,
"loc": {
"start": {
"line": 46,
"column": 46
},
"end": {
"line": 46,
"column": 47
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1681,
"end": 1682,
"loc": {
"start": {
"line": 47,
"column": 10
},
"end": {
"line": 47,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1692,
"end": 1693,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1693,
"end": 1694,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 10
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1694,
"end": 1695,
"loc": {
"start": {
"line": 48,
"column": 10
},
"end": {
"line": 48,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1703,
"end": 1704,
"loc": {
"start": {
"line": 49,
"column": 6
},
"end": {
"line": 49,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1710,
"end": 1711,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1711,
"end": 1712,
"loc": {
"start": {
"line": 50,
"column": 5
},
"end": {
"line": 50,
"column": 6
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1712,
"end": 1713,
"loc": {
"start": {
"line": 50,
"column": 6
},
"end": {
"line": 50,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1717,
"end": 1718,
"loc": {
"start": {
"line": 51,
"column": 2
},
"end": {
"line": 51,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ",
"start": 1724,
"end": 1871,
"loc": {
"start": {
"line": 53,
"column": 2
},
"end": {
"line": 56,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSimpleKeyboardLayoutKey",
"start": 1875,
"end": 1901,
"loc": {
"start": {
"line": 57,
"column": 2
},
"end": {
"line": 57,
"column": 28
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1902,
"end": 1903,
"loc": {
"start": {
"line": 57,
"column": 29
},
"end": {
"line": 57,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1904,
"end": 1905,
"loc": {
"start": {
"line": 57,
"column": 31
},
"end": {
"line": 57,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1905,
"end": 1910,
"loc": {
"start": {
"line": 57,
"column": 32
},
"end": {
"line": 57,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1910,
"end": 1911,
"loc": {
"start": {
"line": 57,
"column": 37
},
"end": {
"line": 57,
"column": 38
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1912,
"end": 1914,
"loc": {
"start": {
"line": 57,
"column": 39
},
"end": {
"line": 57,
"column": 41
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1915,
"end": 1916,
"loc": {
"start": {
"line": 57,
"column": 42
},
"end": {
"line": 57,
"column": 43
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 1922,
"end": 1925,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 1926,
"end": 1932,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1932,
"end": 1933,
"loc": {
"start": {
"line": 58,
"column": 14
},
"end": {
"line": 58,
"column": 15
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1941,
"end": 1943,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1943,
"end": 1944,
"loc": {
"start": {
"line": 60,
"column": 6
},
"end": {
"line": 60,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1952,
"end": 1957,
"loc": {
"start": {
"line": 61,
"column": 6
},
"end": {
"line": 61,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1957,
"end": 1958,
"loc": {
"start": {
"line": 61,
"column": 11
},
"end": {
"line": 61,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 1958,
"end": 1962,
"loc": {
"start": {
"line": 61,
"column": 12
},
"end": {
"line": 61,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1962,
"end": 1963,
"loc": {
"start": {
"line": 61,
"column": 16
},
"end": {
"line": 61,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 1963,
"end": 1971,
"loc": {
"start": {
"line": 61,
"column": 17
},
"end": {
"line": 61,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1971,
"end": 1972,
"loc": {
"start": {
"line": 61,
"column": 25
},
"end": {
"line": 61,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Numpad",
"start": 1972,
"end": 1980,
"loc": {
"start": {
"line": 61,
"column": 26
},
"end": {
"line": 61,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1980,
"end": 1981,
"loc": {
"start": {
"line": 61,
"column": 34
},
"end": {
"line": 61,
"column": 35
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 1982,
"end": 1984,
"loc": {
"start": {
"line": 61,
"column": 36
},
"end": {
"line": 61,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1992,
"end": 1997,
"loc": {
"start": {
"line": 62,
"column": 6
},
"end": {
"line": 62,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1997,
"end": 1998,
"loc": {
"start": {
"line": 62,
"column": 11
},
"end": {
"line": 62,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 1998,
"end": 2002,
"loc": {
"start": {
"line": 62,
"column": 12
},
"end": {
"line": 62,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2002,
"end": 2003,
"loc": {
"start": {
"line": 62,
"column": 16
},
"end": {
"line": 62,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2003,
"end": 2011,
"loc": {
"start": {
"line": 62,
"column": 17
},
"end": {
"line": 62,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2011,
"end": 2012,
"loc": {
"start": {
"line": 62,
"column": 25
},
"end": {
"line": 62,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Shift",
"start": 2012,
"end": 2019,
"loc": {
"start": {
"line": 62,
"column": 26
},
"end": {
"line": 62,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2019,
"end": 2020,
"loc": {
"start": {
"line": 62,
"column": 33
},
"end": {
"line": 62,
"column": 34
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2021,
"end": 2023,
"loc": {
"start": {
"line": 62,
"column": 35
},
"end": {
"line": 62,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2031,
"end": 2036,
"loc": {
"start": {
"line": 63,
"column": 6
},
"end": {
"line": 63,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2036,
"end": 2037,
"loc": {
"start": {
"line": 63,
"column": 11
},
"end": {
"line": 63,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2037,
"end": 2041,
"loc": {
"start": {
"line": 63,
"column": 12
},
"end": {
"line": 63,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2041,
"end": 2042,
"loc": {
"start": {
"line": 63,
"column": 16
},
"end": {
"line": 63,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2042,
"end": 2050,
"loc": {
"start": {
"line": 63,
"column": 17
},
"end": {
"line": 63,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2050,
"end": 2051,
"loc": {
"start": {
"line": 63,
"column": 25
},
"end": {
"line": 63,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Space",
"start": 2051,
"end": 2058,
"loc": {
"start": {
"line": 63,
"column": 26
},
"end": {
"line": 63,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2058,
"end": 2059,
"loc": {
"start": {
"line": 63,
"column": 33
},
"end": {
"line": 63,
"column": 34
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2060,
"end": 2062,
"loc": {
"start": {
"line": 63,
"column": 35
},
"end": {
"line": 63,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2070,
"end": 2075,
"loc": {
"start": {
"line": 64,
"column": 6
},
"end": {
"line": 64,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2075,
"end": 2076,
"loc": {
"start": {
"line": 64,
"column": 11
},
"end": {
"line": 64,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2076,
"end": 2080,
"loc": {
"start": {
"line": 64,
"column": 12
},
"end": {
"line": 64,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2080,
"end": 2081,
"loc": {
"start": {
"line": 64,
"column": 16
},
"end": {
"line": 64,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2081,
"end": 2089,
"loc": {
"start": {
"line": 64,
"column": 17
},
"end": {
"line": 64,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2089,
"end": 2090,
"loc": {
"start": {
"line": 64,
"column": 25
},
"end": {
"line": 64,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Backspace",
"start": 2090,
"end": 2101,
"loc": {
"start": {
"line": 64,
"column": 26
},
"end": {
"line": 64,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2101,
"end": 2102,
"loc": {
"start": {
"line": 64,
"column": 37
},
"end": {
"line": 64,
"column": 38
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2103,
"end": 2105,
"loc": {
"start": {
"line": 64,
"column": 39
},
"end": {
"line": 64,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2113,
"end": 2118,
"loc": {
"start": {
"line": 65,
"column": 6
},
"end": {
"line": 65,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2118,
"end": 2119,
"loc": {
"start": {
"line": 65,
"column": 11
},
"end": {
"line": 65,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2119,
"end": 2123,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2123,
"end": 2124,
"loc": {
"start": {
"line": 65,
"column": 16
},
"end": {
"line": 65,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2124,
"end": 2132,
"loc": {
"start": {
"line": 65,
"column": 17
},
"end": {
"line": 65,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2132,
"end": 2133,
"loc": {
"start": {
"line": 65,
"column": 25
},
"end": {
"line": 65,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Control",
"start": 2133,
"end": 2142,
"loc": {
"start": {
"line": 65,
"column": 26
},
"end": {
"line": 65,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2142,
"end": 2143,
"loc": {
"start": {
"line": 65,
"column": 35
},
"end": {
"line": 65,
"column": 36
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2144,
"end": 2146,
"loc": {
"start": {
"line": 65,
"column": 37
},
"end": {
"line": 65,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2154,
"end": 2159,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2159,
"end": 2160,
"loc": {
"start": {
"line": 66,
"column": 11
},
"end": {
"line": 66,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2160,
"end": 2164,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2164,
"end": 2165,
"loc": {
"start": {
"line": 66,
"column": 16
},
"end": {
"line": 66,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2165,
"end": 2173,
"loc": {
"start": {
"line": 66,
"column": 17
},
"end": {
"line": 66,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2173,
"end": 2174,
"loc": {
"start": {
"line": 66,
"column": 25
},
"end": {
"line": 66,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Alt",
"start": 2174,
"end": 2179,
"loc": {
"start": {
"line": 66,
"column": 26
},
"end": {
"line": 66,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2179,
"end": 2180,
"loc": {
"start": {
"line": 66,
"column": 31
},
"end": {
"line": 66,
"column": 32
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2181,
"end": 2183,
"loc": {
"start": {
"line": 66,
"column": 33
},
"end": {
"line": 66,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2191,
"end": 2196,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2196,
"end": 2197,
"loc": {
"start": {
"line": 67,
"column": 11
},
"end": {
"line": 67,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2197,
"end": 2201,
"loc": {
"start": {
"line": 67,
"column": 12
},
"end": {
"line": 67,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2201,
"end": 2202,
"loc": {
"start": {
"line": 67,
"column": 16
},
"end": {
"line": 67,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2202,
"end": 2210,
"loc": {
"start": {
"line": 67,
"column": 17
},
"end": {
"line": 67,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2210,
"end": 2211,
"loc": {
"start": {
"line": 67,
"column": 25
},
"end": {
"line": 67,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Meta",
"start": 2211,
"end": 2217,
"loc": {
"start": {
"line": 67,
"column": 26
},
"end": {
"line": 67,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2217,
"end": 2218,
"loc": {
"start": {
"line": 67,
"column": 32
},
"end": {
"line": 67,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2224,
"end": 2225,
"loc": {
"start": {
"line": 68,
"column": 4
},
"end": {
"line": 68,
"column": 5
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2225,
"end": 2226,
"loc": {
"start": {
"line": 68,
"column": 5
},
"end": {
"line": 68,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2234,
"end": 2240,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2241,
"end": 2242,
"loc": {
"start": {
"line": 69,
"column": 13
},
"end": {
"line": 69,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2243,
"end": 2248,
"loc": {
"start": {
"line": 69,
"column": 15
},
"end": {
"line": 69,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2248,
"end": 2249,
"loc": {
"start": {
"line": 69,
"column": 20
},
"end": {
"line": 69,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2249,
"end": 2253,
"loc": {
"start": {
"line": 69,
"column": 21
},
"end": {
"line": 69,
"column": 25
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2253,
"end": 2254,
"loc": {
"start": {
"line": 69,
"column": 25
},
"end": {
"line": 69,
"column": 26
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2260,
"end": 2261,
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 70,
"column": 5
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 2262,
"end": 2266,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2267,
"end": 2268,
"loc": {
"start": {
"line": 70,
"column": 11
},
"end": {
"line": 70,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2276,
"end": 2282,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2283,
"end": 2284,
"loc": {
"start": {
"line": 71,
"column": 13
},
"end": {
"line": 71,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2285,
"end": 2290,
"loc": {
"start": {
"line": 71,
"column": 15
},
"end": {
"line": 71,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2290,
"end": 2291,
"loc": {
"start": {
"line": 71,
"column": 20
},
"end": {
"line": 71,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "key",
"start": 2291,
"end": 2294,
"loc": {
"start": {
"line": 71,
"column": 21
},
"end": {
"line": 71,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2294,
"end": 2295,
"loc": {
"start": {
"line": 71,
"column": 24
},
"end": {
"line": 71,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2301,
"end": 2302,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 72,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ",
"start": 2310,
"end": 2379,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2385,
"end": 2387,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 77,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2388,
"end": 2389,
"loc": {
"start": {
"line": 77,
"column": 7
},
"end": {
"line": 77,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2397,
"end": 2403,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 12
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 2404,
"end": 2407,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2408,
"end": 2414,
"loc": {
"start": {
"line": 78,
"column": 17
},
"end": {
"line": 78,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2414,
"end": 2415,
"loc": {
"start": {
"line": 78,
"column": 23
},
"end": {
"line": 78,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toUpperCase",
"start": 2415,
"end": 2426,
"loc": {
"start": {
"line": 78,
"column": 24
},
"end": {
"line": 78,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2426,
"end": 2427,
"loc": {
"start": {
"line": 78,
"column": 35
},
"end": {
"line": 78,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2427,
"end": 2428,
"loc": {
"start": {
"line": 78,
"column": 36
},
"end": {
"line": 78,
"column": 37
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2429,
"end": 2431,
"loc": {
"start": {
"line": 78,
"column": 38
},
"end": {
"line": 78,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2439,
"end": 2440,
"loc": {
"start": {
"line": 79,
"column": 6
},
"end": {
"line": 79,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2440,
"end": 2445,
"loc": {
"start": {
"line": 79,
"column": 7
},
"end": {
"line": 79,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2445,
"end": 2446,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 79,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2446,
"end": 2450,
"loc": {
"start": {
"line": 79,
"column": 13
},
"end": {
"line": 79,
"column": 17
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2450,
"end": 2451,
"loc": {
"start": {
"line": 79,
"column": 17
},
"end": {
"line": 79,
"column": 18
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2451,
"end": 2452,
"loc": {
"start": {
"line": 79,
"column": 18
},
"end": {
"line": 79,
"column": 19
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2452,
"end": 2453,
"loc": {
"start": {
"line": 79,
"column": 19
},
"end": {
"line": 79,
"column": 20
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 2454,
"end": 2457,
"loc": {
"start": {
"line": 79,
"column": 21
},
"end": {
"line": 79,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "F",
"start": 2458,
"end": 2461,
"loc": {
"start": {
"line": 79,
"column": 25
},
"end": {
"line": 79,
"column": 28
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2462,
"end": 2464,
"loc": {
"start": {
"line": 79,
"column": 29
},
"end": {
"line": 79,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Number",
"start": 2465,
"end": 2471,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2471,
"end": 2472,
"loc": {
"start": {
"line": 79,
"column": 38
},
"end": {
"line": 79,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isInteger",
"start": 2472,
"end": 2481,
"loc": {
"start": {
"line": 79,
"column": 39
},
"end": {
"line": 79,
"column": 48
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2481,
"end": 2482,
"loc": {
"start": {
"line": 79,
"column": 48
},
"end": {
"line": 79,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Number",
"start": 2482,
"end": 2488,
"loc": {
"start": {
"line": 79,
"column": 49
},
"end": {
"line": 79,
"column": 55
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2488,
"end": 2489,
"loc": {
"start": {
"line": 79,
"column": 55
},
"end": {
"line": 79,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2489,
"end": 2494,
"loc": {
"start": {
"line": 79,
"column": 56
},
"end": {
"line": 79,
"column": 61
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2494,
"end": 2495,
"loc": {
"start": {
"line": 79,
"column": 61
},
"end": {
"line": 79,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2495,
"end": 2499,
"loc": {
"start": {
"line": 79,
"column": 62
},
"end": {
"line": 79,
"column": 66
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2499,
"end": 2500,
"loc": {
"start": {
"line": 79,
"column": 66
},
"end": {
"line": 79,
"column": 67
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 2500,
"end": 2501,
"loc": {
"start": {
"line": 79,
"column": 67
},
"end": {
"line": 79,
"column": 68
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2501,
"end": 2502,
"loc": {
"start": {
"line": 79,
"column": 68
},
"end": {
"line": 79,
"column": 69
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2502,
"end": 2503,
"loc": {
"start": {
"line": 79,
"column": 69
},
"end": {
"line": 79,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2503,
"end": 2504,
"loc": {
"start": {
"line": 79,
"column": 70
},
"end": {
"line": 79,
"column": 71
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2505,
"end": 2507,
"loc": {
"start": {
"line": 79,
"column": 72
},
"end": {
"line": 79,
"column": 74
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2508,
"end": 2513,
"loc": {
"start": {
"line": 79,
"column": 75
},
"end": {
"line": 79,
"column": 80
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2513,
"end": 2514,
"loc": {
"start": {
"line": 79,
"column": 80
},
"end": {
"line": 79,
"column": 81
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2514,
"end": 2518,
"loc": {
"start": {
"line": 79,
"column": 81
},
"end": {
"line": 79,
"column": 85
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2518,
"end": 2519,
"loc": {
"start": {
"line": 79,
"column": 85
},
"end": {
"line": 79,
"column": 86
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 2519,
"end": 2525,
"loc": {
"start": {
"line": 79,
"column": 86
},
"end": {
"line": 79,
"column": 92
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 2526,
"end": 2528,
"loc": {
"start": {
"line": 79,
"column": 93
},
"end": {
"line": 79,
"column": 95
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 3,
"start": 2529,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 96
},
"end": {
"line": 79,
"column": 97
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2530,
"end": 2531,
"loc": {
"start": {
"line": 79,
"column": 97
},
"end": {
"line": 79,
"column": 98
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2537,
"end": 2538,
"loc": {
"start": {
"line": 80,
"column": 4
},
"end": {
"line": 80,
"column": 5
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2539,
"end": 2540,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 80,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2548,
"end": 2554,
"loc": {
"start": {
"line": 81,
"column": 6
},
"end": {
"line": 81,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2555,
"end": 2556,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 81,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2557,
"end": 2563,
"loc": {
"start": {
"line": 81,
"column": 15
},
"end": {
"line": 81,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2563,
"end": 2564,
"loc": {
"start": {
"line": 81,
"column": 21
},
"end": {
"line": 81,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toLowerCase",
"start": 2564,
"end": 2575,
"loc": {
"start": {
"line": 81,
"column": 22
},
"end": {
"line": 81,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2575,
"end": 2576,
"loc": {
"start": {
"line": 81,
"column": 33
},
"end": {
"line": 81,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2576,
"end": 2577,
"loc": {
"start": {
"line": 81,
"column": 34
},
"end": {
"line": 81,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2577,
"end": 2578,
"loc": {
"start": {
"line": 81,
"column": 35
},
"end": {
"line": 81,
"column": 36
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2584,
"end": 2585,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 5
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2593,
"end": 2599,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2600,
"end": 2606,
"loc": {
"start": {
"line": 84,
"column": 11
},
"end": {
"line": 84,
"column": 17
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2606,
"end": 2607,
"loc": {
"start": {
"line": 84,
"column": 17
},
"end": {
"line": 84,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2611,
"end": 2612,
"loc": {
"start": {
"line": 85,
"column": 2
},
"end": {
"line": 85,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2614,
"end": 2615,
"loc": {
"start": {
"line": 86,
"column": 0
},
"end": {
"line": 86,
"column": 1
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 2619,
"end": 2625,
"loc": {
"start": {
"line": 88,
"column": 0
},
"end": {
"line": 88,
"column": 6
}
}
},
{
"type": {
"label": "default",
"keyword": "default",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 2626,
"end": 2633,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "PhysicalKeyboard",
"start": 2634,
"end": 2650,
"loc": {
"start": {
"line": 88,
"column": 15
},
"end": {
"line": 88,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2650,
"end": 2651,
"loc": {
"start": {
"line": 88,
"column": 31
},
"end": {
"line": 88,
"column": 32
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2651,
"end": 2651,
"loc": {
"start": {
"line": 88,
"column": 32
},
"end": {
"line": 88,
"column": 32
}
}
}
]
}