simple-keyboard/docs/ast/source/lib/services/PhysicalKeyboard.js.json
Francisco Hodge e7284b0e38 Docs update
2018-10-30 23:33:29 -04:00

22084 lines
771 KiB
JSON

{
"type": "File",
"start": 0,
"end": 2879,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 97,
"column": 32
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2879,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 97,
"column": 32
}
},
"sourceType": "module",
"body": [
{
"type": "Identifier",
"start": 40,
"end": 2843,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 95,
"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": 2843,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 95,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 140,
"end": 586,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 24,
"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": 586,
"loc": {
"start": {
"line": 8,
"column": 37
},
"end": {
"line": 24,
"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
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Bindings\r\n ",
"start": 311,
"end": 340,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 346,
"end": 411,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 69
}
},
"expression": {
"type": "AssignmentExpression",
"start": 346,
"end": 410,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 68
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 346,
"end": 371,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 346,
"end": 350,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 351,
"end": 371,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 29
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "CallExpression",
"start": 374,
"end": 410,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 68
}
},
"callee": {
"type": "MemberExpression",
"start": 374,
"end": 404,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 62
}
},
"object": {
"type": "MemberExpression",
"start": 374,
"end": 399,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 57
}
},
"object": {
"type": "ThisExpression",
"start": 374,
"end": 378,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 379,
"end": 399,
"loc": {
"start": {
"line": 17,
"column": 37
},
"end": {
"line": 17,
"column": 57
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 400,
"end": 404,
"loc": {
"start": {
"line": 17,
"column": 58
},
"end": {
"line": 17,
"column": 62
},
"identifierName": "bind"
},
"name": "bind"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 405,
"end": 409,
"loc": {
"start": {
"line": 17,
"column": 63
},
"end": {
"line": 17,
"column": 67
}
}
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Bindings\r\n ",
"start": 311,
"end": 340,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 417,
"end": 494,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 81
}
},
"expression": {
"type": "AssignmentExpression",
"start": 417,
"end": 493,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 80
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 417,
"end": 448,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 417,
"end": 421,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 422,
"end": 448,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 35
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 451,
"end": 493,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 80
}
},
"callee": {
"type": "MemberExpression",
"start": 451,
"end": 487,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 74
}
},
"object": {
"type": "MemberExpression",
"start": 451,
"end": 482,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 69
}
},
"object": {
"type": "ThisExpression",
"start": 451,
"end": 455,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"start": 456,
"end": 482,
"loc": {
"start": {
"line": 18,
"column": 43
},
"end": {
"line": 18,
"column": 69
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 483,
"end": 487,
"loc": {
"start": {
"line": 18,
"column": 70
},
"end": {
"line": 18,
"column": 74
},
"identifierName": "bind"
},
"name": "bind"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 488,
"end": 492,
"loc": {
"start": {
"line": 18,
"column": 75
},
"end": {
"line": 18,
"column": 79
}
}
}
]
}
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initialize key listeners\r\n ",
"start": 502,
"end": 547,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 553,
"end": 581,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 32
}
},
"expression": {
"type": "CallExpression",
"start": 553,
"end": 580,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 553,
"end": 578,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 553,
"end": 557,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 558,
"end": 578,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 29
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initialize key listeners\r\n ",
"start": 502,
"end": 547,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
]
}
],
"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": 592,
"end": 640,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 28,
"column": 5
}
}
}
]
},
{
"type": "ClassMethod",
"start": 644,
"end": 1953,
"loc": {
"start": {
"line": 29,
"column": 2
},
"end": {
"line": 60,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 644,
"end": 664,
"loc": {
"start": {
"line": 29,
"column": 2
},
"end": {
"line": 29,
"column": 22
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 666,
"end": 1953,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 60,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 712,
"end": 1408,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 44,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 712,
"end": 1407,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 44,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 712,
"end": 737,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 712,
"end": 720,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 721,
"end": 737,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 738,
"end": 747,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 39
}
},
"extra": {
"rawValue": "keydown",
"raw": "\"keydown\""
},
"value": "keydown"
},
{
"type": "ArrowFunctionExpression",
"start": 749,
"end": 1406,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 44,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 750,
"end": 755,
"loc": {
"start": {
"line": 31,
"column": 42
},
"end": {
"line": 31,
"column": 47
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 760,
"end": 1406,
"loc": {
"start": {
"line": 31,
"column": 52
},
"end": {
"line": 44,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 769,
"end": 1399,
"loc": {
"start": {
"line": 32,
"column": 6
},
"end": {
"line": 43,
"column": 7
}
},
"test": {
"type": "MemberExpression",
"start": 772,
"end": 833,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 70
}
},
"object": {
"type": "MemberExpression",
"start": 772,
"end": 807,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 772,
"end": 799,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 772,
"end": 776,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 777,
"end": 799,
"loc": {
"start": {
"line": 32,
"column": 14
},
"end": {
"line": 32,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 800,
"end": 807,
"loc": {
"start": {
"line": 32,
"column": 37
},
"end": {
"line": 32,
"column": 44
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 808,
"end": 833,
"loc": {
"start": {
"line": 32,
"column": 45
},
"end": {
"line": 32,
"column": 70
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 834,
"end": 1399,
"loc": {
"start": {
"line": 32,
"column": 71
},
"end": {
"line": 43,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 845,
"end": 904,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 849,
"end": 903,
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 849,
"end": 862,
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 25
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
},
"init": {
"type": "CallExpression",
"start": 865,
"end": 903,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 865,
"end": 896,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 865,
"end": 869,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 870,
"end": 896,
"loc": {
"start": {
"line": 33,
"column": 33
},
"end": {
"line": 33,
"column": 59
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 897,
"end": 902,
"loc": {
"start": {
"line": 33,
"column": 60
},
"end": {
"line": 33,
"column": 65
},
"identifierName": "event"
},
"name": "event"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 916,
"end": 1390,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 42,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 916,
"end": 1389,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 42,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 916,
"end": 952,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 916,
"end": 943,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 916,
"end": 920,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 921,
"end": 943,
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 35
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 944,
"end": 952,
"loc": {
"start": {
"line": 35,
"column": 36
},
"end": {
"line": 35,
"column": 44
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 953,
"end": 1388,
"loc": {
"start": {
"line": 35,
"column": 45
},
"end": {
"line": 42,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 953,
"end": 961,
"loc": {
"start": {
"line": 35,
"column": 45
},
"end": {
"line": 35,
"column": 53
},
"identifierName": "instance"
},
"name": "instance"
}
],
"body": {
"type": "BlockStatement",
"start": 965,
"end": 1388,
"loc": {
"start": {
"line": 35,
"column": 57
},
"end": {
"line": 42,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 978,
"end": 1086,
"loc": {
"start": {
"line": 36,
"column": 10
},
"end": {
"line": 36,
"column": 118
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 982,
"end": 1085,
"loc": {
"start": {
"line": 36,
"column": 14
},
"end": {
"line": 36,
"column": 117
}
},
"id": {
"type": "Identifier",
"start": 982,
"end": 991,
"loc": {
"start": {
"line": 36,
"column": 14
},
"end": {
"line": 36,
"column": 23
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"init": {
"type": "LogicalExpression",
"start": 994,
"end": 1085,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 117
}
},
"left": {
"type": "CallExpression",
"start": 994,
"end": 1034,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 994,
"end": 1019,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 994,
"end": 1002,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 34
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1003,
"end": 1019,
"loc": {
"start": {
"line": 36,
"column": 35
},
"end": {
"line": 36,
"column": 51
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1020,
"end": 1033,
"loc": {
"start": {
"line": 36,
"column": 52
},
"end": {
"line": 36,
"column": 65
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 1038,
"end": 1085,
"loc": {
"start": {
"line": 36,
"column": 70
},
"end": {
"line": 36,
"column": 117
}
},
"callee": {
"type": "MemberExpression",
"start": 1038,
"end": 1063,
"loc": {
"start": {
"line": 36,
"column": 70
},
"end": {
"line": 36,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 1038,
"end": 1046,
"loc": {
"start": {
"line": 36,
"column": 70
},
"end": {
"line": 36,
"column": 78
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1047,
"end": 1063,
"loc": {
"start": {
"line": 36,
"column": 79
},
"end": {
"line": 36,
"column": 95
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "TemplateLiteral",
"start": 1064,
"end": 1084,
"loc": {
"start": {
"line": 36,
"column": 96
},
"end": {
"line": 36,
"column": 116
}
},
"expressions": [
{
"type": "Identifier",
"start": 1068,
"end": 1081,
"loc": {
"start": {
"line": 36,
"column": 100
},
"end": {
"line": 36,
"column": 113
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 1065,
"end": 1066,
"loc": {
"start": {
"line": 36,
"column": 97
},
"end": {
"line": 36,
"column": 98
}
},
"value": {
"raw": "{",
"cooked": "{"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 1082,
"end": 1083,
"loc": {
"start": {
"line": 36,
"column": 114
},
"end": {
"line": 36,
"column": 115
}
},
"value": {
"raw": "}",
"cooked": "}"
},
"tail": true
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1100,
"end": 1377,
"loc": {
"start": {
"line": 38,
"column": 10
},
"end": {
"line": 41,
"column": 11
}
},
"test": {
"type": "Identifier",
"start": 1103,
"end": 1112,
"loc": {
"start": {
"line": 38,
"column": 13
},
"end": {
"line": 38,
"column": 22
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"consequent": {
"type": "BlockStatement",
"start": 1113,
"end": 1377,
"loc": {
"start": {
"line": 38,
"column": 23
},
"end": {
"line": 41,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1128,
"end": 1244,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 128
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1128,
"end": 1243,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 127
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1128,
"end": 1159,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 43
}
},
"object": {
"type": "MemberExpression",
"start": 1128,
"end": 1143,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1128,
"end": 1137,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1138,
"end": 1143,
"loc": {
"start": {
"line": 39,
"column": 22
},
"end": {
"line": 39,
"column": 27
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1144,
"end": 1159,
"loc": {
"start": {
"line": 39,
"column": 28
},
"end": {
"line": 39,
"column": 43
},
"identifierName": "backgroundColor"
},
"name": "backgroundColor"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 1162,
"end": 1243,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 127
}
},
"left": {
"type": "MemberExpression",
"start": 1162,
"end": 1230,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 114
}
},
"object": {
"type": "MemberExpression",
"start": 1162,
"end": 1197,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 81
}
},
"object": {
"type": "MemberExpression",
"start": 1162,
"end": 1189,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 73
}
},
"object": {
"type": "ThisExpression",
"start": 1162,
"end": 1166,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"start": 1167,
"end": 1189,
"loc": {
"start": {
"line": 39,
"column": 51
},
"end": {
"line": 39,
"column": 73
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1190,
"end": 1197,
"loc": {
"start": {
"line": 39,
"column": 74
},
"end": {
"line": 39,
"column": 81
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1198,
"end": 1230,
"loc": {
"start": {
"line": 39,
"column": 82
},
"end": {
"line": 39,
"column": 114
},
"identifierName": "physicalKeyboardHighlightBgColor"
},
"name": "physicalKeyboardHighlightBgColor"
},
"computed": false
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 1234,
"end": 1243,
"loc": {
"start": {
"line": 39,
"column": 118
},
"end": {
"line": 39,
"column": 127
}
},
"extra": {
"rawValue": "#9ab4d0",
"raw": "\"#9ab4d0\""
},
"value": "#9ab4d0"
}
}
}
},
{
"type": "ExpressionStatement",
"start": 1258,
"end": 1364,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 118
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1258,
"end": 1363,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 117
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1258,
"end": 1279,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 1258,
"end": 1273,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1258,
"end": 1267,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1268,
"end": 1273,
"loc": {
"start": {
"line": 40,
"column": 22
},
"end": {
"line": 40,
"column": 27
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1274,
"end": 1279,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 33
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 1282,
"end": 1363,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 117
}
},
"left": {
"type": "MemberExpression",
"start": 1282,
"end": 1352,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 106
}
},
"object": {
"type": "MemberExpression",
"start": 1282,
"end": 1317,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 71
}
},
"object": {
"type": "MemberExpression",
"start": 1282,
"end": 1309,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 63
}
},
"object": {
"type": "ThisExpression",
"start": 1282,
"end": 1286,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"start": 1287,
"end": 1309,
"loc": {
"start": {
"line": 40,
"column": 41
},
"end": {
"line": 40,
"column": 63
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1310,
"end": 1317,
"loc": {
"start": {
"line": 40,
"column": 64
},
"end": {
"line": 40,
"column": 71
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1318,
"end": 1352,
"loc": {
"start": {
"line": 40,
"column": 72
},
"end": {
"line": 40,
"column": 106
},
"identifierName": "physicalKeyboardHighlightTextColor"
},
"name": "physicalKeyboardHighlightTextColor"
},
"computed": false
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 1356,
"end": 1363,
"loc": {
"start": {
"line": 40,
"column": 110
},
"end": {
"line": 40,
"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": 673,
"end": 706,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 37
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1416,
"end": 1449,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 37
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1455,
"end": 1948,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 1455,
"end": 1947,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 59,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 1455,
"end": 1480,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 1455,
"end": 1463,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1464,
"end": 1480,
"loc": {
"start": {
"line": 47,
"column": 13
},
"end": {
"line": 47,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 1481,
"end": 1488,
"loc": {
"start": {
"line": 47,
"column": 30
},
"end": {
"line": 47,
"column": 37
}
},
"extra": {
"rawValue": "keyup",
"raw": "\"keyup\""
},
"value": "keyup"
},
{
"type": "ArrowFunctionExpression",
"start": 1490,
"end": 1946,
"loc": {
"start": {
"line": 47,
"column": 39
},
"end": {
"line": 59,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1491,
"end": 1496,
"loc": {
"start": {
"line": 47,
"column": 40
},
"end": {
"line": 47,
"column": 45
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 1501,
"end": 1946,
"loc": {
"start": {
"line": 47,
"column": 50
},
"end": {
"line": 59,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1510,
"end": 1939,
"loc": {
"start": {
"line": 48,
"column": 6
},
"end": {
"line": 58,
"column": 7
}
},
"test": {
"type": "MemberExpression",
"start": 1513,
"end": 1574,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 70
}
},
"object": {
"type": "MemberExpression",
"start": 1513,
"end": 1548,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 1513,
"end": 1540,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1513,
"end": 1517,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 1518,
"end": 1540,
"loc": {
"start": {
"line": 48,
"column": 14
},
"end": {
"line": 48,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1541,
"end": 1548,
"loc": {
"start": {
"line": 48,
"column": 37
},
"end": {
"line": 48,
"column": 44
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1549,
"end": 1574,
"loc": {
"start": {
"line": 48,
"column": 45
},
"end": {
"line": 48,
"column": 70
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1575,
"end": 1939,
"loc": {
"start": {
"line": 48,
"column": 71
},
"end": {
"line": 58,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1586,
"end": 1645,
"loc": {
"start": {
"line": 49,
"column": 8
},
"end": {
"line": 49,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1590,
"end": 1644,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 1590,
"end": 1603,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 25
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
},
"init": {
"type": "CallExpression",
"start": 1606,
"end": 1644,
"loc": {
"start": {
"line": 49,
"column": 28
},
"end": {
"line": 49,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 1606,
"end": 1637,
"loc": {
"start": {
"line": 49,
"column": 28
},
"end": {
"line": 49,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 1606,
"end": 1610,
"loc": {
"start": {
"line": 49,
"column": 28
},
"end": {
"line": 49,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 1611,
"end": 1637,
"loc": {
"start": {
"line": 49,
"column": 33
},
"end": {
"line": 49,
"column": 59
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1638,
"end": 1643,
"loc": {
"start": {
"line": 49,
"column": 60
},
"end": {
"line": 49,
"column": 65
},
"identifierName": "event"
},
"name": "event"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 1657,
"end": 1930,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 57,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 1657,
"end": 1929,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 57,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 1657,
"end": 1693,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 1657,
"end": 1684,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 1657,
"end": 1661,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1662,
"end": 1684,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 35
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1685,
"end": 1693,
"loc": {
"start": {
"line": 51,
"column": 36
},
"end": {
"line": 51,
"column": 44
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 1694,
"end": 1928,
"loc": {
"start": {
"line": 51,
"column": 45
},
"end": {
"line": 57,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1694,
"end": 1702,
"loc": {
"start": {
"line": 51,
"column": 45
},
"end": {
"line": 51,
"column": 53
},
"identifierName": "instance"
},
"name": "instance"
}
],
"body": {
"type": "BlockStatement",
"start": 1706,
"end": 1928,
"loc": {
"start": {
"line": 51,
"column": 57
},
"end": {
"line": 57,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1719,
"end": 1827,
"loc": {
"start": {
"line": 52,
"column": 10
},
"end": {
"line": 52,
"column": 118
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1723,
"end": 1826,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 117
}
},
"id": {
"type": "Identifier",
"start": 1723,
"end": 1732,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 23
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"init": {
"type": "LogicalExpression",
"start": 1735,
"end": 1826,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 117
}
},
"left": {
"type": "CallExpression",
"start": 1735,
"end": 1775,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 1735,
"end": 1760,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 1735,
"end": 1743,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 34
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1744,
"end": 1760,
"loc": {
"start": {
"line": 52,
"column": 35
},
"end": {
"line": 52,
"column": 51
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1761,
"end": 1774,
"loc": {
"start": {
"line": 52,
"column": 52
},
"end": {
"line": 52,
"column": 65
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 1779,
"end": 1826,
"loc": {
"start": {
"line": 52,
"column": 70
},
"end": {
"line": 52,
"column": 117
}
},
"callee": {
"type": "MemberExpression",
"start": 1779,
"end": 1804,
"loc": {
"start": {
"line": 52,
"column": 70
},
"end": {
"line": 52,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 1779,
"end": 1787,
"loc": {
"start": {
"line": 52,
"column": 70
},
"end": {
"line": 52,
"column": 78
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1788,
"end": 1804,
"loc": {
"start": {
"line": 52,
"column": 79
},
"end": {
"line": 52,
"column": 95
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "TemplateLiteral",
"start": 1805,
"end": 1825,
"loc": {
"start": {
"line": 52,
"column": 96
},
"end": {
"line": 52,
"column": 116
}
},
"expressions": [
{
"type": "Identifier",
"start": 1809,
"end": 1822,
"loc": {
"start": {
"line": 52,
"column": 100
},
"end": {
"line": 52,
"column": 113
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 1806,
"end": 1807,
"loc": {
"start": {
"line": 52,
"column": 97
},
"end": {
"line": 52,
"column": 98
}
},
"value": {
"raw": "{",
"cooked": "{"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 1823,
"end": 1824,
"loc": {
"start": {
"line": 52,
"column": 114
},
"end": {
"line": 52,
"column": 115
}
},
"value": {
"raw": "}",
"cooked": "}"
},
"tail": true
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1841,
"end": 1917,
"loc": {
"start": {
"line": 54,
"column": 10
},
"end": {
"line": 56,
"column": 11
}
},
"test": {
"type": "Identifier",
"start": 1844,
"end": 1853,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 22
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"consequent": {
"type": "BlockStatement",
"start": 1854,
"end": 1917,
"loc": {
"start": {
"line": 54,
"column": 23
},
"end": {
"line": 56,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1869,
"end": 1904,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 47
}
},
"expression": {
"type": "CallExpression",
"start": 1869,
"end": 1903,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 1869,
"end": 1894,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 1869,
"end": 1878,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1879,
"end": 1894,
"loc": {
"start": {
"line": 55,
"column": 22
},
"end": {
"line": 55,
"column": 37
},
"identifierName": "removeAttribute"
},
"name": "removeAttribute"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1895,
"end": 1902,
"loc": {
"start": {
"line": 55,
"column": 38
},
"end": {
"line": 55,
"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": 1416,
"end": 1449,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 37
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 592,
"end": 640,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 28,
"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": 1959,
"end": 2106,
"loc": {
"start": {
"line": 62,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2110,
"end": 2840,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 94,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2110,
"end": 2136,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 66,
"column": 28
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2137,
"end": 2142,
"loc": {
"start": {
"line": 66,
"column": 29
},
"end": {
"line": 66,
"column": 34
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 2143,
"end": 2840,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 94,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2150,
"end": 2161,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 15
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2154,
"end": 2160,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 14
}
},
"id": {
"type": "Identifier",
"start": 2154,
"end": 2160,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 14
},
"identifierName": "output"
},
"name": "output"
},
"init": null
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 2169,
"end": 2530,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 81,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 2180,
"end": 2446,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 76,
"column": 33
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2408,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 75,
"column": 32
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2371,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 74,
"column": 36
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2330,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 73,
"column": 38
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2287,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 72,
"column": 34
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2248,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 71,
"column": 34
}
},
"left": {
"type": "CallExpression",
"start": 2180,
"end": 2209,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 2180,
"end": 2199,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2180,
"end": 2190,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2180,
"end": 2185,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2186,
"end": 2190,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2191,
"end": 2199,
"loc": {
"start": {
"line": 70,
"column": 17
},
"end": {
"line": 70,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2200,
"end": 2208,
"loc": {
"start": {
"line": 70,
"column": 26
},
"end": {
"line": 70,
"column": 34
}
},
"extra": {
"rawValue": "Numpad",
"raw": "\"Numpad\""
},
"value": "Numpad"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2220,
"end": 2248,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 2220,
"end": 2239,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2220,
"end": 2230,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2220,
"end": 2225,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2226,
"end": 2230,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2231,
"end": 2239,
"loc": {
"start": {
"line": 71,
"column": 17
},
"end": {
"line": 71,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2240,
"end": 2247,
"loc": {
"start": {
"line": 71,
"column": 26
},
"end": {
"line": 71,
"column": 33
}
},
"extra": {
"rawValue": "Shift",
"raw": "\"Shift\""
},
"value": "Shift"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2259,
"end": 2287,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 2259,
"end": 2278,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2259,
"end": 2269,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2259,
"end": 2264,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2265,
"end": 2269,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2270,
"end": 2278,
"loc": {
"start": {
"line": 72,
"column": 17
},
"end": {
"line": 72,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2279,
"end": 2286,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 33
}
},
"extra": {
"rawValue": "Space",
"raw": "\"Space\""
},
"value": "Space"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2298,
"end": 2330,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 2298,
"end": 2317,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2298,
"end": 2308,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2298,
"end": 2303,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2304,
"end": 2308,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2309,
"end": 2317,
"loc": {
"start": {
"line": 73,
"column": 17
},
"end": {
"line": 73,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2318,
"end": 2329,
"loc": {
"start": {
"line": 73,
"column": 26
},
"end": {
"line": 73,
"column": 37
}
},
"extra": {
"rawValue": "Backspace",
"raw": "\"Backspace\""
},
"value": "Backspace"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2341,
"end": 2371,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 2341,
"end": 2360,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2341,
"end": 2351,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2341,
"end": 2346,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2347,
"end": 2351,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2352,
"end": 2360,
"loc": {
"start": {
"line": 74,
"column": 17
},
"end": {
"line": 74,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2361,
"end": 2370,
"loc": {
"start": {
"line": 74,
"column": 26
},
"end": {
"line": 74,
"column": 35
}
},
"extra": {
"rawValue": "Control",
"raw": "\"Control\""
},
"value": "Control"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2382,
"end": 2408,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 2382,
"end": 2401,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2382,
"end": 2392,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2382,
"end": 2387,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2388,
"end": 2392,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2393,
"end": 2401,
"loc": {
"start": {
"line": 75,
"column": 17
},
"end": {
"line": 75,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2402,
"end": 2407,
"loc": {
"start": {
"line": 75,
"column": 26
},
"end": {
"line": 75,
"column": 31
}
},
"extra": {
"rawValue": "Alt",
"raw": "\"Alt\""
},
"value": "Alt"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2419,
"end": 2446,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 2419,
"end": 2438,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2419,
"end": 2429,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2419,
"end": 2424,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2425,
"end": 2429,
"loc": {
"start": {
"line": 76,
"column": 12
},
"end": {
"line": 76,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2430,
"end": 2438,
"loc": {
"start": {
"line": 76,
"column": 17
},
"end": {
"line": 76,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2439,
"end": 2445,
"loc": {
"start": {
"line": 76,
"column": 26
},
"end": {
"line": 76,
"column": 32
}
},
"extra": {
"rawValue": "Meta",
"raw": "\"Meta\""
},
"value": "Meta"
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 2453,
"end": 2489,
"loc": {
"start": {
"line": 77,
"column": 5
},
"end": {
"line": 79,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2462,
"end": 2482,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2462,
"end": 2481,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 25
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2462,
"end": 2468,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "MemberExpression",
"start": 2471,
"end": 2481,
"loc": {
"start": {
"line": 78,
"column": 15
},
"end": {
"line": 78,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 2471,
"end": 2476,
"loc": {
"start": {
"line": 78,
"column": 15
},
"end": {
"line": 78,
"column": 20
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2477,
"end": 2481,
"loc": {
"start": {
"line": 78,
"column": 21
},
"end": {
"line": 78,
"column": 25
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2495,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 11
},
"end": {
"line": 81,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2504,
"end": 2523,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 80,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2504,
"end": 2522,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 80,
"column": 24
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2504,
"end": 2510,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 80,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "MemberExpression",
"start": 2513,
"end": 2522,
"loc": {
"start": {
"line": 80,
"column": 15
},
"end": {
"line": 80,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 2513,
"end": 2518,
"loc": {
"start": {
"line": 80,
"column": 15
},
"end": {
"line": 80,
"column": 20
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2519,
"end": 2522,
"loc": {
"start": {
"line": 80,
"column": 21
},
"end": {
"line": 80,
"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": 2538,
"end": 2607,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 85,
"column": 7
}
}
}
]
},
{
"type": "IfStatement",
"start": 2613,
"end": 2813,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 91,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 2625,
"end": 2759,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 88,
"column": 98
}
},
"left": {
"type": "BinaryExpression",
"start": 2625,
"end": 2656,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 87,
"column": 37
}
},
"left": {
"type": "Identifier",
"start": 2625,
"end": 2631,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 87,
"column": 12
},
"identifierName": "output"
},
"name": "output",
"leadingComments": null
},
"operator": "!==",
"right": {
"type": "CallExpression",
"start": 2636,
"end": 2656,
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 2636,
"end": 2654,
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 2636,
"end": 2642,
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 23
},
"identifierName": "output"
},
"name": "output"
},
"property": {
"type": "Identifier",
"start": 2643,
"end": 2654,
"loc": {
"start": {
"line": 87,
"column": 24
},
"end": {
"line": 87,
"column": 35
},
"identifierName": "toUpperCase"
},
"name": "toUpperCase"
},
"computed": false
},
"arguments": []
},
"leadingComments": null
},
"operator": "||",
"right": {
"type": "LogicalExpression",
"start": 2668,
"end": 2758,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 97
}
},
"left": {
"type": "LogicalExpression",
"start": 2668,
"end": 2732,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 71
}
},
"left": {
"type": "BinaryExpression",
"start": 2668,
"end": 2689,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 28
}
},
"left": {
"type": "MemberExpression",
"start": 2668,
"end": 2681,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 20
}
},
"object": {
"type": "MemberExpression",
"start": 2668,
"end": 2678,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 2668,
"end": 2673,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 12
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2674,
"end": 2678,
"loc": {
"start": {
"line": 88,
"column": 13
},
"end": {
"line": 88,
"column": 17
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "NumericLiteral",
"start": 2679,
"end": 2680,
"loc": {
"start": {
"line": 88,
"column": 18
},
"end": {
"line": 88,
"column": 19
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 2686,
"end": 2689,
"loc": {
"start": {
"line": 88,
"column": 25
},
"end": {
"line": 88,
"column": 28
}
},
"extra": {
"rawValue": "F",
"raw": "\"F\""
},
"value": "F"
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 2693,
"end": 2732,
"loc": {
"start": {
"line": 88,
"column": 32
},
"end": {
"line": 88,
"column": 71
}
},
"callee": {
"type": "MemberExpression",
"start": 2693,
"end": 2709,
"loc": {
"start": {
"line": 88,
"column": 32
},
"end": {
"line": 88,
"column": 48
}
},
"object": {
"type": "Identifier",
"start": 2693,
"end": 2699,
"loc": {
"start": {
"line": 88,
"column": 32
},
"end": {
"line": 88,
"column": 38
},
"identifierName": "Number"
},
"name": "Number"
},
"property": {
"type": "Identifier",
"start": 2700,
"end": 2709,
"loc": {
"start": {
"line": 88,
"column": 39
},
"end": {
"line": 88,
"column": 48
},
"identifierName": "isInteger"
},
"name": "isInteger"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2710,
"end": 2731,
"loc": {
"start": {
"line": 88,
"column": 49
},
"end": {
"line": 88,
"column": 70
}
},
"callee": {
"type": "Identifier",
"start": 2710,
"end": 2716,
"loc": {
"start": {
"line": 88,
"column": 49
},
"end": {
"line": 88,
"column": 55
},
"identifierName": "Number"
},
"name": "Number"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2717,
"end": 2730,
"loc": {
"start": {
"line": 88,
"column": 56
},
"end": {
"line": 88,
"column": 69
}
},
"object": {
"type": "MemberExpression",
"start": 2717,
"end": 2727,
"loc": {
"start": {
"line": 88,
"column": 56
},
"end": {
"line": 88,
"column": 66
}
},
"object": {
"type": "Identifier",
"start": 2717,
"end": 2722,
"loc": {
"start": {
"line": 88,
"column": 56
},
"end": {
"line": 88,
"column": 61
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2723,
"end": 2727,
"loc": {
"start": {
"line": 88,
"column": 62
},
"end": {
"line": 88,
"column": 66
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "NumericLiteral",
"start": 2728,
"end": 2729,
"loc": {
"start": {
"line": 88,
"column": 67
},
"end": {
"line": 88,
"column": 68
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"computed": true
}
]
}
]
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 2736,
"end": 2758,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 97
}
},
"left": {
"type": "MemberExpression",
"start": 2736,
"end": 2753,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 92
}
},
"object": {
"type": "MemberExpression",
"start": 2736,
"end": 2746,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 85
}
},
"object": {
"type": "Identifier",
"start": 2736,
"end": 2741,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 80
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2742,
"end": 2746,
"loc": {
"start": {
"line": 88,
"column": 81
},
"end": {
"line": 88,
"column": 85
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2747,
"end": 2753,
"loc": {
"start": {
"line": 88,
"column": 86
},
"end": {
"line": 88,
"column": 92
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "NumericLiteral",
"start": 2757,
"end": 2758,
"loc": {
"start": {
"line": 88,
"column": 96
},
"end": {
"line": 88,
"column": 97
}
},
"extra": {
"rawValue": 3,
"raw": "3"
},
"value": 3
}
},
"extra": {
"parenthesized": true,
"parenStart": 2667
}
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 2767,
"end": 2813,
"loc": {
"start": {
"line": 89,
"column": 6
},
"end": {
"line": 91,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2776,
"end": 2806,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 90,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2776,
"end": 2805,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 90,
"column": 35
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2776,
"end": 2782,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 90,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "CallExpression",
"start": 2785,
"end": 2805,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 2785,
"end": 2803,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 2785,
"end": 2791,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 21
},
"identifierName": "output"
},
"name": "output"
},
"property": {
"type": "Identifier",
"start": 2792,
"end": 2803,
"loc": {
"start": {
"line": 90,
"column": 22
},
"end": {
"line": 90,
"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": 2538,
"end": 2607,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 85,
"column": 7
}
}
}
]
},
{
"type": "ReturnStatement",
"start": 2821,
"end": 2835,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 93,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 2828,
"end": 2834,
"loc": {
"start": {
"line": 93,
"column": 11
},
"end": {
"line": 93,
"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": 1959,
"end": 2106,
"loc": {
"start": {
"line": 62,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
}
]
}
]
},
"leadingComments": [],
"name": "_",
"trailingComments": []
},
{
"type": "Identifier",
"start": 2847,
"end": 2879,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 97,
"column": 32
}
},
"declaration": {
"type": "Identifier",
"start": 2862,
"end": 2878,
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 31
},
"identifierName": "PhysicalKeyboard"
},
"name": "PhysicalKeyboard"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 2847,
"end": 2879,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 97,
"column": 32
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 40,
"end": 2843,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 95,
"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": 2843,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 95,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 140,
"end": 586,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 24,
"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": 586,
"loc": {
"start": {
"line": 8,
"column": 37
},
"end": {
"line": 24,
"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
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Bindings\r\n ",
"start": 311,
"end": 340,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 346,
"end": 411,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 69
}
},
"expression": {
"type": "AssignmentExpression",
"start": 346,
"end": 410,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 68
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 346,
"end": 371,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 346,
"end": 350,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 351,
"end": 371,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 29
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "CallExpression",
"start": 374,
"end": 410,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 68
}
},
"callee": {
"type": "MemberExpression",
"start": 374,
"end": 404,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 62
}
},
"object": {
"type": "MemberExpression",
"start": 374,
"end": 399,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 57
}
},
"object": {
"type": "ThisExpression",
"start": 374,
"end": 378,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 379,
"end": 399,
"loc": {
"start": {
"line": 17,
"column": 37
},
"end": {
"line": 17,
"column": 57
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 400,
"end": 404,
"loc": {
"start": {
"line": 17,
"column": 58
},
"end": {
"line": 17,
"column": 62
},
"identifierName": "bind"
},
"name": "bind"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 405,
"end": 409,
"loc": {
"start": {
"line": 17,
"column": 63
},
"end": {
"line": 17,
"column": 67
}
}
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Bindings\r\n ",
"start": 311,
"end": 340,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 417,
"end": 494,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 81
}
},
"expression": {
"type": "AssignmentExpression",
"start": 417,
"end": 493,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 80
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 417,
"end": 448,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 417,
"end": 421,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 422,
"end": 448,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 35
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 451,
"end": 493,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 80
}
},
"callee": {
"type": "MemberExpression",
"start": 451,
"end": 487,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 74
}
},
"object": {
"type": "MemberExpression",
"start": 451,
"end": 482,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 69
}
},
"object": {
"type": "ThisExpression",
"start": 451,
"end": 455,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"start": 456,
"end": 482,
"loc": {
"start": {
"line": 18,
"column": 43
},
"end": {
"line": 18,
"column": 69
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 483,
"end": 487,
"loc": {
"start": {
"line": 18,
"column": 70
},
"end": {
"line": 18,
"column": 74
},
"identifierName": "bind"
},
"name": "bind"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 488,
"end": 492,
"loc": {
"start": {
"line": 18,
"column": 75
},
"end": {
"line": 18,
"column": 79
}
}
}
]
}
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initialize key listeners\r\n ",
"start": 502,
"end": 547,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 553,
"end": 581,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 32
}
},
"expression": {
"type": "CallExpression",
"start": 553,
"end": 580,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 553,
"end": 578,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 553,
"end": 557,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 558,
"end": 578,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 29
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initialize key listeners\r\n ",
"start": 502,
"end": 547,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
]
}
],
"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": 592,
"end": 640,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 28,
"column": 5
}
}
}
]
},
{
"type": "ClassMethod",
"start": 644,
"end": 1953,
"loc": {
"start": {
"line": 29,
"column": 2
},
"end": {
"line": 60,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 644,
"end": 664,
"loc": {
"start": {
"line": 29,
"column": 2
},
"end": {
"line": 29,
"column": 22
},
"identifierName": "initKeyboardListener"
},
"name": "initKeyboardListener",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 666,
"end": 1953,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 60,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 712,
"end": 1408,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 44,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 712,
"end": 1407,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 44,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 712,
"end": 737,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 712,
"end": 720,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 721,
"end": 737,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 738,
"end": 747,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 39
}
},
"extra": {
"rawValue": "keydown",
"raw": "\"keydown\""
},
"value": "keydown"
},
{
"type": "ArrowFunctionExpression",
"start": 749,
"end": 1406,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 44,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 750,
"end": 755,
"loc": {
"start": {
"line": 31,
"column": 42
},
"end": {
"line": 31,
"column": 47
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 760,
"end": 1406,
"loc": {
"start": {
"line": 31,
"column": 52
},
"end": {
"line": 44,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 769,
"end": 1399,
"loc": {
"start": {
"line": 32,
"column": 6
},
"end": {
"line": 43,
"column": 7
}
},
"test": {
"type": "MemberExpression",
"start": 772,
"end": 833,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 70
}
},
"object": {
"type": "MemberExpression",
"start": 772,
"end": 807,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 772,
"end": 799,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 772,
"end": 776,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 777,
"end": 799,
"loc": {
"start": {
"line": 32,
"column": 14
},
"end": {
"line": 32,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 800,
"end": 807,
"loc": {
"start": {
"line": 32,
"column": 37
},
"end": {
"line": 32,
"column": 44
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 808,
"end": 833,
"loc": {
"start": {
"line": 32,
"column": 45
},
"end": {
"line": 32,
"column": 70
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 834,
"end": 1399,
"loc": {
"start": {
"line": 32,
"column": 71
},
"end": {
"line": 43,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 845,
"end": 904,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 849,
"end": 903,
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 849,
"end": 862,
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 25
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
},
"init": {
"type": "CallExpression",
"start": 865,
"end": 903,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 865,
"end": 896,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 865,
"end": 869,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 870,
"end": 896,
"loc": {
"start": {
"line": 33,
"column": 33
},
"end": {
"line": 33,
"column": 59
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 897,
"end": 902,
"loc": {
"start": {
"line": 33,
"column": 60
},
"end": {
"line": 33,
"column": 65
},
"identifierName": "event"
},
"name": "event"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 916,
"end": 1390,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 42,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 916,
"end": 1389,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 42,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 916,
"end": 952,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 916,
"end": 943,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 916,
"end": 920,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 921,
"end": 943,
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 35
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 944,
"end": 952,
"loc": {
"start": {
"line": 35,
"column": 36
},
"end": {
"line": 35,
"column": 44
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 953,
"end": 1388,
"loc": {
"start": {
"line": 35,
"column": 45
},
"end": {
"line": 42,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 953,
"end": 961,
"loc": {
"start": {
"line": 35,
"column": 45
},
"end": {
"line": 35,
"column": 53
},
"identifierName": "instance"
},
"name": "instance"
}
],
"body": {
"type": "BlockStatement",
"start": 965,
"end": 1388,
"loc": {
"start": {
"line": 35,
"column": 57
},
"end": {
"line": 42,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 978,
"end": 1086,
"loc": {
"start": {
"line": 36,
"column": 10
},
"end": {
"line": 36,
"column": 118
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 982,
"end": 1085,
"loc": {
"start": {
"line": 36,
"column": 14
},
"end": {
"line": 36,
"column": 117
}
},
"id": {
"type": "Identifier",
"start": 982,
"end": 991,
"loc": {
"start": {
"line": 36,
"column": 14
},
"end": {
"line": 36,
"column": 23
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"init": {
"type": "LogicalExpression",
"start": 994,
"end": 1085,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 117
}
},
"left": {
"type": "CallExpression",
"start": 994,
"end": 1034,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 994,
"end": 1019,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 994,
"end": 1002,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 34
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1003,
"end": 1019,
"loc": {
"start": {
"line": 36,
"column": 35
},
"end": {
"line": 36,
"column": 51
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1020,
"end": 1033,
"loc": {
"start": {
"line": 36,
"column": 52
},
"end": {
"line": 36,
"column": 65
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 1038,
"end": 1085,
"loc": {
"start": {
"line": 36,
"column": 70
},
"end": {
"line": 36,
"column": 117
}
},
"callee": {
"type": "MemberExpression",
"start": 1038,
"end": 1063,
"loc": {
"start": {
"line": 36,
"column": 70
},
"end": {
"line": 36,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 1038,
"end": 1046,
"loc": {
"start": {
"line": 36,
"column": 70
},
"end": {
"line": 36,
"column": 78
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1047,
"end": 1063,
"loc": {
"start": {
"line": 36,
"column": 79
},
"end": {
"line": 36,
"column": 95
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "TemplateLiteral",
"start": 1064,
"end": 1084,
"loc": {
"start": {
"line": 36,
"column": 96
},
"end": {
"line": 36,
"column": 116
}
},
"expressions": [
{
"type": "Identifier",
"start": 1068,
"end": 1081,
"loc": {
"start": {
"line": 36,
"column": 100
},
"end": {
"line": 36,
"column": 113
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 1065,
"end": 1066,
"loc": {
"start": {
"line": 36,
"column": 97
},
"end": {
"line": 36,
"column": 98
}
},
"value": {
"raw": "{",
"cooked": "{"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 1082,
"end": 1083,
"loc": {
"start": {
"line": 36,
"column": 114
},
"end": {
"line": 36,
"column": 115
}
},
"value": {
"raw": "}",
"cooked": "}"
},
"tail": true
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1100,
"end": 1377,
"loc": {
"start": {
"line": 38,
"column": 10
},
"end": {
"line": 41,
"column": 11
}
},
"test": {
"type": "Identifier",
"start": 1103,
"end": 1112,
"loc": {
"start": {
"line": 38,
"column": 13
},
"end": {
"line": 38,
"column": 22
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"consequent": {
"type": "BlockStatement",
"start": 1113,
"end": 1377,
"loc": {
"start": {
"line": 38,
"column": 23
},
"end": {
"line": 41,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1128,
"end": 1244,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 128
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1128,
"end": 1243,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 127
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1128,
"end": 1159,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 43
}
},
"object": {
"type": "MemberExpression",
"start": 1128,
"end": 1143,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1128,
"end": 1137,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1138,
"end": 1143,
"loc": {
"start": {
"line": 39,
"column": 22
},
"end": {
"line": 39,
"column": 27
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1144,
"end": 1159,
"loc": {
"start": {
"line": 39,
"column": 28
},
"end": {
"line": 39,
"column": 43
},
"identifierName": "backgroundColor"
},
"name": "backgroundColor"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 1162,
"end": 1243,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 127
}
},
"left": {
"type": "MemberExpression",
"start": 1162,
"end": 1230,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 114
}
},
"object": {
"type": "MemberExpression",
"start": 1162,
"end": 1197,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 81
}
},
"object": {
"type": "MemberExpression",
"start": 1162,
"end": 1189,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 73
}
},
"object": {
"type": "ThisExpression",
"start": 1162,
"end": 1166,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"start": 1167,
"end": 1189,
"loc": {
"start": {
"line": 39,
"column": 51
},
"end": {
"line": 39,
"column": 73
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1190,
"end": 1197,
"loc": {
"start": {
"line": 39,
"column": 74
},
"end": {
"line": 39,
"column": 81
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1198,
"end": 1230,
"loc": {
"start": {
"line": 39,
"column": 82
},
"end": {
"line": 39,
"column": 114
},
"identifierName": "physicalKeyboardHighlightBgColor"
},
"name": "physicalKeyboardHighlightBgColor"
},
"computed": false
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 1234,
"end": 1243,
"loc": {
"start": {
"line": 39,
"column": 118
},
"end": {
"line": 39,
"column": 127
}
},
"extra": {
"rawValue": "#9ab4d0",
"raw": "\"#9ab4d0\""
},
"value": "#9ab4d0"
}
}
}
},
{
"type": "ExpressionStatement",
"start": 1258,
"end": 1364,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 118
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1258,
"end": 1363,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 117
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1258,
"end": 1279,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 1258,
"end": 1273,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1258,
"end": 1267,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1268,
"end": 1273,
"loc": {
"start": {
"line": 40,
"column": 22
},
"end": {
"line": 40,
"column": 27
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1274,
"end": 1279,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 33
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 1282,
"end": 1363,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 117
}
},
"left": {
"type": "MemberExpression",
"start": 1282,
"end": 1352,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 106
}
},
"object": {
"type": "MemberExpression",
"start": 1282,
"end": 1317,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 71
}
},
"object": {
"type": "MemberExpression",
"start": 1282,
"end": 1309,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 63
}
},
"object": {
"type": "ThisExpression",
"start": 1282,
"end": 1286,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"start": 1287,
"end": 1309,
"loc": {
"start": {
"line": 40,
"column": 41
},
"end": {
"line": 40,
"column": 63
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1310,
"end": 1317,
"loc": {
"start": {
"line": 40,
"column": 64
},
"end": {
"line": 40,
"column": 71
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1318,
"end": 1352,
"loc": {
"start": {
"line": 40,
"column": 72
},
"end": {
"line": 40,
"column": 106
},
"identifierName": "physicalKeyboardHighlightTextColor"
},
"name": "physicalKeyboardHighlightTextColor"
},
"computed": false
},
"operator": "||",
"right": {
"type": "StringLiteral",
"start": 1356,
"end": 1363,
"loc": {
"start": {
"line": 40,
"column": 110
},
"end": {
"line": 40,
"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": 673,
"end": 706,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 37
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1416,
"end": 1449,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 37
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1455,
"end": 1948,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 1455,
"end": 1947,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 59,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 1455,
"end": 1480,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 1455,
"end": 1463,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1464,
"end": 1480,
"loc": {
"start": {
"line": 47,
"column": 13
},
"end": {
"line": 47,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 1481,
"end": 1488,
"loc": {
"start": {
"line": 47,
"column": 30
},
"end": {
"line": 47,
"column": 37
}
},
"extra": {
"rawValue": "keyup",
"raw": "\"keyup\""
},
"value": "keyup"
},
{
"type": "ArrowFunctionExpression",
"start": 1490,
"end": 1946,
"loc": {
"start": {
"line": 47,
"column": 39
},
"end": {
"line": 59,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1491,
"end": 1496,
"loc": {
"start": {
"line": 47,
"column": 40
},
"end": {
"line": 47,
"column": 45
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 1501,
"end": 1946,
"loc": {
"start": {
"line": 47,
"column": 50
},
"end": {
"line": 59,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1510,
"end": 1939,
"loc": {
"start": {
"line": 48,
"column": 6
},
"end": {
"line": 58,
"column": 7
}
},
"test": {
"type": "MemberExpression",
"start": 1513,
"end": 1574,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 70
}
},
"object": {
"type": "MemberExpression",
"start": 1513,
"end": 1548,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 1513,
"end": 1540,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1513,
"end": 1517,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 13
}
}
},
"property": {
"type": "Identifier",
"start": 1518,
"end": 1540,
"loc": {
"start": {
"line": 48,
"column": 14
},
"end": {
"line": 48,
"column": 36
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1541,
"end": 1548,
"loc": {
"start": {
"line": 48,
"column": 37
},
"end": {
"line": 48,
"column": 44
},
"identifierName": "options"
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1549,
"end": 1574,
"loc": {
"start": {
"line": 48,
"column": 45
},
"end": {
"line": 48,
"column": 70
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1575,
"end": 1939,
"loc": {
"start": {
"line": 48,
"column": 71
},
"end": {
"line": 58,
"column": 7
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1586,
"end": 1645,
"loc": {
"start": {
"line": 49,
"column": 8
},
"end": {
"line": 49,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1590,
"end": 1644,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 1590,
"end": 1603,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 25
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
},
"init": {
"type": "CallExpression",
"start": 1606,
"end": 1644,
"loc": {
"start": {
"line": 49,
"column": 28
},
"end": {
"line": 49,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 1606,
"end": 1637,
"loc": {
"start": {
"line": 49,
"column": 28
},
"end": {
"line": 49,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 1606,
"end": 1610,
"loc": {
"start": {
"line": 49,
"column": 28
},
"end": {
"line": 49,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 1611,
"end": 1637,
"loc": {
"start": {
"line": 49,
"column": 33
},
"end": {
"line": 49,
"column": 59
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1638,
"end": 1643,
"loc": {
"start": {
"line": 49,
"column": 60
},
"end": {
"line": 49,
"column": 65
},
"identifierName": "event"
},
"name": "event"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 1657,
"end": 1930,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 57,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 1657,
"end": 1929,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 57,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 1657,
"end": 1693,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 1657,
"end": 1684,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 1657,
"end": 1661,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1662,
"end": 1684,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 35
},
"identifierName": "simpleKeyboardInstance"
},
"name": "simpleKeyboardInstance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1685,
"end": 1693,
"loc": {
"start": {
"line": 51,
"column": 36
},
"end": {
"line": 51,
"column": 44
},
"identifierName": "dispatch"
},
"name": "dispatch"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 1694,
"end": 1928,
"loc": {
"start": {
"line": 51,
"column": 45
},
"end": {
"line": 57,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1694,
"end": 1702,
"loc": {
"start": {
"line": 51,
"column": 45
},
"end": {
"line": 51,
"column": 53
},
"identifierName": "instance"
},
"name": "instance"
}
],
"body": {
"type": "BlockStatement",
"start": 1706,
"end": 1928,
"loc": {
"start": {
"line": 51,
"column": 57
},
"end": {
"line": 57,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1719,
"end": 1827,
"loc": {
"start": {
"line": 52,
"column": 10
},
"end": {
"line": 52,
"column": 118
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1723,
"end": 1826,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 117
}
},
"id": {
"type": "Identifier",
"start": 1723,
"end": 1732,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 23
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"init": {
"type": "LogicalExpression",
"start": 1735,
"end": 1826,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 117
}
},
"left": {
"type": "CallExpression",
"start": 1735,
"end": 1775,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 1735,
"end": 1760,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 1735,
"end": 1743,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 34
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1744,
"end": 1760,
"loc": {
"start": {
"line": 52,
"column": 35
},
"end": {
"line": 52,
"column": 51
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1761,
"end": 1774,
"loc": {
"start": {
"line": 52,
"column": 52
},
"end": {
"line": 52,
"column": 65
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 1779,
"end": 1826,
"loc": {
"start": {
"line": 52,
"column": 70
},
"end": {
"line": 52,
"column": 117
}
},
"callee": {
"type": "MemberExpression",
"start": 1779,
"end": 1804,
"loc": {
"start": {
"line": 52,
"column": 70
},
"end": {
"line": 52,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 1779,
"end": 1787,
"loc": {
"start": {
"line": 52,
"column": 70
},
"end": {
"line": 52,
"column": 78
},
"identifierName": "instance"
},
"name": "instance"
},
"property": {
"type": "Identifier",
"start": 1788,
"end": 1804,
"loc": {
"start": {
"line": 52,
"column": 79
},
"end": {
"line": 52,
"column": 95
},
"identifierName": "getButtonElement"
},
"name": "getButtonElement"
},
"computed": false
},
"arguments": [
{
"type": "TemplateLiteral",
"start": 1805,
"end": 1825,
"loc": {
"start": {
"line": 52,
"column": 96
},
"end": {
"line": 52,
"column": 116
}
},
"expressions": [
{
"type": "Identifier",
"start": 1809,
"end": 1822,
"loc": {
"start": {
"line": 52,
"column": 100
},
"end": {
"line": 52,
"column": 113
},
"identifierName": "buttonPressed"
},
"name": "buttonPressed"
}
],
"quasis": [
{
"type": "TemplateElement",
"start": 1806,
"end": 1807,
"loc": {
"start": {
"line": 52,
"column": 97
},
"end": {
"line": 52,
"column": 98
}
},
"value": {
"raw": "{",
"cooked": "{"
},
"tail": false
},
{
"type": "TemplateElement",
"start": 1823,
"end": 1824,
"loc": {
"start": {
"line": 52,
"column": 114
},
"end": {
"line": 52,
"column": 115
}
},
"value": {
"raw": "}",
"cooked": "}"
},
"tail": true
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1841,
"end": 1917,
"loc": {
"start": {
"line": 54,
"column": 10
},
"end": {
"line": 56,
"column": 11
}
},
"test": {
"type": "Identifier",
"start": 1844,
"end": 1853,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 22
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"consequent": {
"type": "BlockStatement",
"start": 1854,
"end": 1917,
"loc": {
"start": {
"line": 54,
"column": 23
},
"end": {
"line": 56,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1869,
"end": 1904,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 47
}
},
"expression": {
"type": "CallExpression",
"start": 1869,
"end": 1903,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 1869,
"end": 1894,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 1869,
"end": 1878,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 21
},
"identifierName": "buttonDOM"
},
"name": "buttonDOM"
},
"property": {
"type": "Identifier",
"start": 1879,
"end": 1894,
"loc": {
"start": {
"line": 55,
"column": 22
},
"end": {
"line": 55,
"column": 37
},
"identifierName": "removeAttribute"
},
"name": "removeAttribute"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1895,
"end": 1902,
"loc": {
"start": {
"line": 55,
"column": 38
},
"end": {
"line": 55,
"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": 1416,
"end": 1449,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 37
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 592,
"end": 640,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 28,
"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": 1959,
"end": 2106,
"loc": {
"start": {
"line": 62,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2110,
"end": 2840,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 94,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2110,
"end": 2136,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 66,
"column": 28
},
"identifierName": "getSimpleKeyboardLayoutKey"
},
"name": "getSimpleKeyboardLayoutKey",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2137,
"end": 2142,
"loc": {
"start": {
"line": 66,
"column": 29
},
"end": {
"line": 66,
"column": 34
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 2143,
"end": 2840,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 94,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2150,
"end": 2161,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 15
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2154,
"end": 2160,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 14
}
},
"id": {
"type": "Identifier",
"start": 2154,
"end": 2160,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 14
},
"identifierName": "output"
},
"name": "output"
},
"init": null
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 2169,
"end": 2530,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 81,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 2180,
"end": 2446,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 76,
"column": 33
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2408,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 75,
"column": 32
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2371,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 74,
"column": 36
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2330,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 73,
"column": 38
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2287,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 72,
"column": 34
}
},
"left": {
"type": "LogicalExpression",
"start": 2180,
"end": 2248,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 71,
"column": 34
}
},
"left": {
"type": "CallExpression",
"start": 2180,
"end": 2209,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 2180,
"end": 2199,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2180,
"end": 2190,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2180,
"end": 2185,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2186,
"end": 2190,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2191,
"end": 2199,
"loc": {
"start": {
"line": 70,
"column": 17
},
"end": {
"line": 70,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2200,
"end": 2208,
"loc": {
"start": {
"line": 70,
"column": 26
},
"end": {
"line": 70,
"column": 34
}
},
"extra": {
"rawValue": "Numpad",
"raw": "\"Numpad\""
},
"value": "Numpad"
}
]
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2220,
"end": 2248,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 2220,
"end": 2239,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2220,
"end": 2230,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2220,
"end": 2225,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2226,
"end": 2230,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2231,
"end": 2239,
"loc": {
"start": {
"line": 71,
"column": 17
},
"end": {
"line": 71,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2240,
"end": 2247,
"loc": {
"start": {
"line": 71,
"column": 26
},
"end": {
"line": 71,
"column": 33
}
},
"extra": {
"rawValue": "Shift",
"raw": "\"Shift\""
},
"value": "Shift"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2259,
"end": 2287,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 2259,
"end": 2278,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2259,
"end": 2269,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2259,
"end": 2264,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2265,
"end": 2269,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2270,
"end": 2278,
"loc": {
"start": {
"line": 72,
"column": 17
},
"end": {
"line": 72,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2279,
"end": 2286,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 33
}
},
"extra": {
"rawValue": "Space",
"raw": "\"Space\""
},
"value": "Space"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2298,
"end": 2330,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 2298,
"end": 2317,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2298,
"end": 2308,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2298,
"end": 2303,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2304,
"end": 2308,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2309,
"end": 2317,
"loc": {
"start": {
"line": 73,
"column": 17
},
"end": {
"line": 73,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2318,
"end": 2329,
"loc": {
"start": {
"line": 73,
"column": 26
},
"end": {
"line": 73,
"column": 37
}
},
"extra": {
"rawValue": "Backspace",
"raw": "\"Backspace\""
},
"value": "Backspace"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2341,
"end": 2371,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 2341,
"end": 2360,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2341,
"end": 2351,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2341,
"end": 2346,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2347,
"end": 2351,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2352,
"end": 2360,
"loc": {
"start": {
"line": 74,
"column": 17
},
"end": {
"line": 74,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2361,
"end": 2370,
"loc": {
"start": {
"line": 74,
"column": 26
},
"end": {
"line": 74,
"column": 35
}
},
"extra": {
"rawValue": "Control",
"raw": "\"Control\""
},
"value": "Control"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2382,
"end": 2408,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 2382,
"end": 2401,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2382,
"end": 2392,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2382,
"end": 2387,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2388,
"end": 2392,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2393,
"end": 2401,
"loc": {
"start": {
"line": 75,
"column": 17
},
"end": {
"line": 75,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2402,
"end": 2407,
"loc": {
"start": {
"line": 75,
"column": 26
},
"end": {
"line": 75,
"column": 31
}
},
"extra": {
"rawValue": "Alt",
"raw": "\"Alt\""
},
"value": "Alt"
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 2419,
"end": 2446,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 2419,
"end": 2438,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2419,
"end": 2429,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2419,
"end": 2424,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 11
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2425,
"end": 2429,
"loc": {
"start": {
"line": 76,
"column": 12
},
"end": {
"line": 76,
"column": 16
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2430,
"end": 2438,
"loc": {
"start": {
"line": 76,
"column": 17
},
"end": {
"line": 76,
"column": 25
},
"identifierName": "includes"
},
"name": "includes"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 2439,
"end": 2445,
"loc": {
"start": {
"line": 76,
"column": 26
},
"end": {
"line": 76,
"column": 32
}
},
"extra": {
"rawValue": "Meta",
"raw": "\"Meta\""
},
"value": "Meta"
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 2453,
"end": 2489,
"loc": {
"start": {
"line": 77,
"column": 5
},
"end": {
"line": 79,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2462,
"end": 2482,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2462,
"end": 2481,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 25
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2462,
"end": 2468,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "MemberExpression",
"start": 2471,
"end": 2481,
"loc": {
"start": {
"line": 78,
"column": 15
},
"end": {
"line": 78,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 2471,
"end": 2476,
"loc": {
"start": {
"line": 78,
"column": 15
},
"end": {
"line": 78,
"column": 20
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2477,
"end": 2481,
"loc": {
"start": {
"line": 78,
"column": 21
},
"end": {
"line": 78,
"column": 25
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2495,
"end": 2530,
"loc": {
"start": {
"line": 79,
"column": 11
},
"end": {
"line": 81,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2504,
"end": 2523,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 80,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2504,
"end": 2522,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 80,
"column": 24
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2504,
"end": 2510,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 80,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "MemberExpression",
"start": 2513,
"end": 2522,
"loc": {
"start": {
"line": 80,
"column": 15
},
"end": {
"line": 80,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 2513,
"end": 2518,
"loc": {
"start": {
"line": 80,
"column": 15
},
"end": {
"line": 80,
"column": 20
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2519,
"end": 2522,
"loc": {
"start": {
"line": 80,
"column": 21
},
"end": {
"line": 80,
"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": 2538,
"end": 2607,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 85,
"column": 7
}
}
}
]
},
{
"type": "IfStatement",
"start": 2613,
"end": 2813,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 91,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 2625,
"end": 2759,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 88,
"column": 98
}
},
"left": {
"type": "BinaryExpression",
"start": 2625,
"end": 2656,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 87,
"column": 37
}
},
"left": {
"type": "Identifier",
"start": 2625,
"end": 2631,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 87,
"column": 12
},
"identifierName": "output"
},
"name": "output",
"leadingComments": null
},
"operator": "!==",
"right": {
"type": "CallExpression",
"start": 2636,
"end": 2656,
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 2636,
"end": 2654,
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 2636,
"end": 2642,
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 23
},
"identifierName": "output"
},
"name": "output"
},
"property": {
"type": "Identifier",
"start": 2643,
"end": 2654,
"loc": {
"start": {
"line": 87,
"column": 24
},
"end": {
"line": 87,
"column": 35
},
"identifierName": "toUpperCase"
},
"name": "toUpperCase"
},
"computed": false
},
"arguments": []
},
"leadingComments": null
},
"operator": "||",
"right": {
"type": "LogicalExpression",
"start": 2668,
"end": 2758,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 97
}
},
"left": {
"type": "LogicalExpression",
"start": 2668,
"end": 2732,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 71
}
},
"left": {
"type": "BinaryExpression",
"start": 2668,
"end": 2689,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 28
}
},
"left": {
"type": "MemberExpression",
"start": 2668,
"end": 2681,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 20
}
},
"object": {
"type": "MemberExpression",
"start": 2668,
"end": 2678,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 2668,
"end": 2673,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 12
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2674,
"end": 2678,
"loc": {
"start": {
"line": 88,
"column": 13
},
"end": {
"line": 88,
"column": 17
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "NumericLiteral",
"start": 2679,
"end": 2680,
"loc": {
"start": {
"line": 88,
"column": 18
},
"end": {
"line": 88,
"column": 19
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 2686,
"end": 2689,
"loc": {
"start": {
"line": 88,
"column": 25
},
"end": {
"line": 88,
"column": 28
}
},
"extra": {
"rawValue": "F",
"raw": "\"F\""
},
"value": "F"
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 2693,
"end": 2732,
"loc": {
"start": {
"line": 88,
"column": 32
},
"end": {
"line": 88,
"column": 71
}
},
"callee": {
"type": "MemberExpression",
"start": 2693,
"end": 2709,
"loc": {
"start": {
"line": 88,
"column": 32
},
"end": {
"line": 88,
"column": 48
}
},
"object": {
"type": "Identifier",
"start": 2693,
"end": 2699,
"loc": {
"start": {
"line": 88,
"column": 32
},
"end": {
"line": 88,
"column": 38
},
"identifierName": "Number"
},
"name": "Number"
},
"property": {
"type": "Identifier",
"start": 2700,
"end": 2709,
"loc": {
"start": {
"line": 88,
"column": 39
},
"end": {
"line": 88,
"column": 48
},
"identifierName": "isInteger"
},
"name": "isInteger"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2710,
"end": 2731,
"loc": {
"start": {
"line": 88,
"column": 49
},
"end": {
"line": 88,
"column": 70
}
},
"callee": {
"type": "Identifier",
"start": 2710,
"end": 2716,
"loc": {
"start": {
"line": 88,
"column": 49
},
"end": {
"line": 88,
"column": 55
},
"identifierName": "Number"
},
"name": "Number"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2717,
"end": 2730,
"loc": {
"start": {
"line": 88,
"column": 56
},
"end": {
"line": 88,
"column": 69
}
},
"object": {
"type": "MemberExpression",
"start": 2717,
"end": 2727,
"loc": {
"start": {
"line": 88,
"column": 56
},
"end": {
"line": 88,
"column": 66
}
},
"object": {
"type": "Identifier",
"start": 2717,
"end": 2722,
"loc": {
"start": {
"line": 88,
"column": 56
},
"end": {
"line": 88,
"column": 61
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2723,
"end": 2727,
"loc": {
"start": {
"line": 88,
"column": 62
},
"end": {
"line": 88,
"column": 66
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "NumericLiteral",
"start": 2728,
"end": 2729,
"loc": {
"start": {
"line": 88,
"column": 67
},
"end": {
"line": 88,
"column": 68
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"computed": true
}
]
}
]
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 2736,
"end": 2758,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 97
}
},
"left": {
"type": "MemberExpression",
"start": 2736,
"end": 2753,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 92
}
},
"object": {
"type": "MemberExpression",
"start": 2736,
"end": 2746,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 85
}
},
"object": {
"type": "Identifier",
"start": 2736,
"end": 2741,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 80
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 2742,
"end": 2746,
"loc": {
"start": {
"line": 88,
"column": 81
},
"end": {
"line": 88,
"column": 85
},
"identifierName": "code"
},
"name": "code"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2747,
"end": 2753,
"loc": {
"start": {
"line": 88,
"column": 86
},
"end": {
"line": 88,
"column": 92
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "NumericLiteral",
"start": 2757,
"end": 2758,
"loc": {
"start": {
"line": 88,
"column": 96
},
"end": {
"line": 88,
"column": 97
}
},
"extra": {
"rawValue": 3,
"raw": "3"
},
"value": 3
}
},
"extra": {
"parenthesized": true,
"parenStart": 2667
}
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 2767,
"end": 2813,
"loc": {
"start": {
"line": 89,
"column": 6
},
"end": {
"line": 91,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2776,
"end": 2806,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 90,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2776,
"end": 2805,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 90,
"column": 35
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2776,
"end": 2782,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 90,
"column": 12
},
"identifierName": "output"
},
"name": "output"
},
"right": {
"type": "CallExpression",
"start": 2785,
"end": 2805,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 2785,
"end": 2803,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 2785,
"end": 2791,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 21
},
"identifierName": "output"
},
"name": "output"
},
"property": {
"type": "Identifier",
"start": 2792,
"end": 2803,
"loc": {
"start": {
"line": 90,
"column": 22
},
"end": {
"line": 90,
"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": 2538,
"end": 2607,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 85,
"column": 7
}
}
}
]
},
{
"type": "ReturnStatement",
"start": 2821,
"end": 2835,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 93,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 2828,
"end": 2834,
"loc": {
"start": {
"line": 93,
"column": 11
},
"end": {
"line": 93,
"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": 1959,
"end": 2106,
"loc": {
"start": {
"line": 62,
"column": 2
},
"end": {
"line": 65,
"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 * Bindings\r\n ",
"start": 311,
"end": 340,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initialize key listeners\r\n ",
"start": 502,
"end": 547,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 592,
"end": 640,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 28,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " Adding button style on keydown",
"start": 673,
"end": 706,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1416,
"end": 1449,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"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": 1959,
"end": 2106,
"loc": {
"start": {
"line": 62,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ",
"start": 2538,
"end": 2607,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 85,
"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": "CommentBlock",
"value": "*\r\n * Bindings\r\n ",
"start": 311,
"end": 340,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 16,
"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": 346,
"end": 350,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 350,
"end": 351,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initKeyboardListener",
"start": 351,
"end": 371,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 372,
"end": 373,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 31
}
}
},
{
"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": 374,
"end": 378,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 378,
"end": 379,
"loc": {
"start": {
"line": 17,
"column": 36
},
"end": {
"line": 17,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initKeyboardListener",
"start": 379,
"end": 399,
"loc": {
"start": {
"line": 17,
"column": 37
},
"end": {
"line": 17,
"column": 57
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 399,
"end": 400,
"loc": {
"start": {
"line": 17,
"column": 57
},
"end": {
"line": 17,
"column": 58
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bind",
"start": 400,
"end": 404,
"loc": {
"start": {
"line": 17,
"column": 58
},
"end": {
"line": 17,
"column": 62
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 404,
"end": 405,
"loc": {
"start": {
"line": 17,
"column": 62
},
"end": {
"line": 17,
"column": 63
}
}
},
{
"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": 405,
"end": 409,
"loc": {
"start": {
"line": 17,
"column": 63
},
"end": {
"line": 17,
"column": 67
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 409,
"end": 410,
"loc": {
"start": {
"line": 17,
"column": 67
},
"end": {
"line": 17,
"column": 68
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 410,
"end": 411,
"loc": {
"start": {
"line": 17,
"column": 68
},
"end": {
"line": 17,
"column": 69
}
}
},
{
"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": 417,
"end": 421,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 421,
"end": 422,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSimpleKeyboardLayoutKey",
"start": 422,
"end": 448,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 35
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 449,
"end": 450,
"loc": {
"start": {
"line": 18,
"column": 36
},
"end": {
"line": 18,
"column": 37
}
}
},
{
"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": 451,
"end": 455,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 455,
"end": 456,
"loc": {
"start": {
"line": 18,
"column": 42
},
"end": {
"line": 18,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSimpleKeyboardLayoutKey",
"start": 456,
"end": 482,
"loc": {
"start": {
"line": 18,
"column": 43
},
"end": {
"line": 18,
"column": 69
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 482,
"end": 483,
"loc": {
"start": {
"line": 18,
"column": 69
},
"end": {
"line": 18,
"column": 70
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bind",
"start": 483,
"end": 487,
"loc": {
"start": {
"line": 18,
"column": 70
},
"end": {
"line": 18,
"column": 74
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 487,
"end": 488,
"loc": {
"start": {
"line": 18,
"column": 74
},
"end": {
"line": 18,
"column": 75
}
}
},
{
"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": 488,
"end": 492,
"loc": {
"start": {
"line": 18,
"column": 75
},
"end": {
"line": 18,
"column": 79
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 492,
"end": 493,
"loc": {
"start": {
"line": 18,
"column": 79
},
"end": {
"line": 18,
"column": 80
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 493,
"end": 494,
"loc": {
"start": {
"line": 18,
"column": 80
},
"end": {
"line": 18,
"column": 81
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initialize key listeners\r\n ",
"start": 502,
"end": 547,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"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": 553,
"end": 557,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 557,
"end": 558,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initKeyboardListener",
"start": 558,
"end": 578,
"loc": {
"start": {
"line": 23,
"column": 9
},
"end": {
"line": 23,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 578,
"end": 579,
"loc": {
"start": {
"line": 23,
"column": 29
},
"end": {
"line": 23,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 579,
"end": 580,
"loc": {
"start": {
"line": 23,
"column": 30
},
"end": {
"line": 23,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 580,
"end": 581,
"loc": {
"start": {
"line": 23,
"column": 31
},
"end": {
"line": 23,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 585,
"end": 586,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initializes key event listeners\r\n ",
"start": 592,
"end": 640,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 28,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initKeyboardListener",
"start": 644,
"end": 664,
"loc": {
"start": {
"line": 29,
"column": 2
},
"end": {
"line": 29,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 664,
"end": 665,
"loc": {
"start": {
"line": 29,
"column": 22
},
"end": {
"line": 29,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 665,
"end": 666,
"loc": {
"start": {
"line": 29,
"column": 23
},
"end": {
"line": 29,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 666,
"end": 667,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 25
}
}
},
{
"type": "CommentLine",
"value": " Adding button style on keydown",
"start": 673,
"end": 706,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 712,
"end": 720,
"loc": {
"start": {
"line": 31,
"column": 4
},
"end": {
"line": 31,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 720,
"end": 721,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEventListener",
"start": 721,
"end": 737,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 737,
"end": 738,
"loc": {
"start": {
"line": 31,
"column": 29
},
"end": {
"line": 31,
"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": 738,
"end": 747,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 747,
"end": 748,
"loc": {
"start": {
"line": 31,
"column": 39
},
"end": {
"line": 31,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 749,
"end": 750,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 750,
"end": 755,
"loc": {
"start": {
"line": 31,
"column": 42
},
"end": {
"line": 31,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 755,
"end": 756,
"loc": {
"start": {
"line": 31,
"column": 47
},
"end": {
"line": 31,
"column": 48
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 757,
"end": 759,
"loc": {
"start": {
"line": 31,
"column": 49
},
"end": {
"line": 31,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 760,
"end": 761,
"loc": {
"start": {
"line": 31,
"column": 52
},
"end": {
"line": 31,
"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": 769,
"end": 771,
"loc": {
"start": {
"line": 32,
"column": 6
},
"end": {
"line": 32,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 771,
"end": 772,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"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": 772,
"end": 776,
"loc": {
"start": {
"line": 32,
"column": 9
},
"end": {
"line": 32,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 776,
"end": 777,
"loc": {
"start": {
"line": 32,
"column": 13
},
"end": {
"line": 32,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 777,
"end": 799,
"loc": {
"start": {
"line": 32,
"column": 14
},
"end": {
"line": 32,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 799,
"end": 800,
"loc": {
"start": {
"line": 32,
"column": 36
},
"end": {
"line": 32,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 800,
"end": 807,
"loc": {
"start": {
"line": 32,
"column": 37
},
"end": {
"line": 32,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 807,
"end": 808,
"loc": {
"start": {
"line": 32,
"column": 44
},
"end": {
"line": 32,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlight",
"start": 808,
"end": 833,
"loc": {
"start": {
"line": 32,
"column": 45
},
"end": {
"line": 32,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 833,
"end": 834,
"loc": {
"start": {
"line": 32,
"column": 70
},
"end": {
"line": 32,
"column": 71
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 834,
"end": 835,
"loc": {
"start": {
"line": 32,
"column": 71
},
"end": {
"line": 32,
"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": 845,
"end": 848,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 849,
"end": 862,
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 863,
"end": 864,
"loc": {
"start": {
"line": 33,
"column": 26
},
"end": {
"line": 33,
"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": 865,
"end": 869,
"loc": {
"start": {
"line": 33,
"column": 28
},
"end": {
"line": 33,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 869,
"end": 870,
"loc": {
"start": {
"line": 33,
"column": 32
},
"end": {
"line": 33,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSimpleKeyboardLayoutKey",
"start": 870,
"end": 896,
"loc": {
"start": {
"line": 33,
"column": 33
},
"end": {
"line": 33,
"column": 59
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 896,
"end": 897,
"loc": {
"start": {
"line": 33,
"column": 59
},
"end": {
"line": 33,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 897,
"end": 902,
"loc": {
"start": {
"line": 33,
"column": 60
},
"end": {
"line": 33,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 902,
"end": 903,
"loc": {
"start": {
"line": 33,
"column": 65
},
"end": {
"line": 33,
"column": 66
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 903,
"end": 904,
"loc": {
"start": {
"line": 33,
"column": 66
},
"end": {
"line": 33,
"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": 916,
"end": 920,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 920,
"end": 921,
"loc": {
"start": {
"line": 35,
"column": 12
},
"end": {
"line": 35,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 921,
"end": 943,
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 943,
"end": 944,
"loc": {
"start": {
"line": 35,
"column": 35
},
"end": {
"line": 35,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 944,
"end": 952,
"loc": {
"start": {
"line": 35,
"column": 36
},
"end": {
"line": 35,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 952,
"end": 953,
"loc": {
"start": {
"line": 35,
"column": 44
},
"end": {
"line": 35,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 953,
"end": 961,
"loc": {
"start": {
"line": 35,
"column": 45
},
"end": {
"line": 35,
"column": 53
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 962,
"end": 964,
"loc": {
"start": {
"line": 35,
"column": 54
},
"end": {
"line": 35,
"column": 56
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 965,
"end": 966,
"loc": {
"start": {
"line": 35,
"column": 57
},
"end": {
"line": 35,
"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": 978,
"end": 981,
"loc": {
"start": {
"line": 36,
"column": 10
},
"end": {
"line": 36,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 982,
"end": 991,
"loc": {
"start": {
"line": 36,
"column": 14
},
"end": {
"line": 36,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 992,
"end": 993,
"loc": {
"start": {
"line": 36,
"column": 24
},
"end": {
"line": 36,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 994,
"end": 1002,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1002,
"end": 1003,
"loc": {
"start": {
"line": 36,
"column": 34
},
"end": {
"line": 36,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getButtonElement",
"start": 1003,
"end": 1019,
"loc": {
"start": {
"line": 36,
"column": 35
},
"end": {
"line": 36,
"column": 51
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1019,
"end": 1020,
"loc": {
"start": {
"line": 36,
"column": 51
},
"end": {
"line": 36,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 1020,
"end": 1033,
"loc": {
"start": {
"line": 36,
"column": 52
},
"end": {
"line": 36,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1033,
"end": 1034,
"loc": {
"start": {
"line": 36,
"column": 65
},
"end": {
"line": 36,
"column": 66
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 1035,
"end": 1037,
"loc": {
"start": {
"line": 36,
"column": 67
},
"end": {
"line": 36,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 1038,
"end": 1046,
"loc": {
"start": {
"line": 36,
"column": 70
},
"end": {
"line": 36,
"column": 78
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1046,
"end": 1047,
"loc": {
"start": {
"line": 36,
"column": 78
},
"end": {
"line": 36,
"column": 79
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getButtonElement",
"start": 1047,
"end": 1063,
"loc": {
"start": {
"line": 36,
"column": 79
},
"end": {
"line": 36,
"column": 95
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1063,
"end": 1064,
"loc": {
"start": {
"line": 36,
"column": 95
},
"end": {
"line": 36,
"column": 96
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1064,
"end": 1065,
"loc": {
"start": {
"line": 36,
"column": 96
},
"end": {
"line": 36,
"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": 1065,
"end": 1066,
"loc": {
"start": {
"line": 36,
"column": 97
},
"end": {
"line": 36,
"column": 98
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1066,
"end": 1068,
"loc": {
"start": {
"line": 36,
"column": 98
},
"end": {
"line": 36,
"column": 100
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 1068,
"end": 1081,
"loc": {
"start": {
"line": 36,
"column": 100
},
"end": {
"line": 36,
"column": 113
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1081,
"end": 1082,
"loc": {
"start": {
"line": 36,
"column": 113
},
"end": {
"line": 36,
"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": 1082,
"end": 1083,
"loc": {
"start": {
"line": 36,
"column": 114
},
"end": {
"line": 36,
"column": 115
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1083,
"end": 1084,
"loc": {
"start": {
"line": 36,
"column": 115
},
"end": {
"line": 36,
"column": 116
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1084,
"end": 1085,
"loc": {
"start": {
"line": 36,
"column": 116
},
"end": {
"line": 36,
"column": 117
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1085,
"end": 1086,
"loc": {
"start": {
"line": 36,
"column": 117
},
"end": {
"line": 36,
"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": 1100,
"end": 1102,
"loc": {
"start": {
"line": 38,
"column": 10
},
"end": {
"line": 38,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1102,
"end": 1103,
"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": "buttonDOM",
"start": 1103,
"end": 1112,
"loc": {
"start": {
"line": 38,
"column": 13
},
"end": {
"line": 38,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1112,
"end": 1113,
"loc": {
"start": {
"line": 38,
"column": 22
},
"end": {
"line": 38,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1113,
"end": 1114,
"loc": {
"start": {
"line": 38,
"column": 23
},
"end": {
"line": 38,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1128,
"end": 1137,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1137,
"end": 1138,
"loc": {
"start": {
"line": 39,
"column": 21
},
"end": {
"line": 39,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "style",
"start": 1138,
"end": 1143,
"loc": {
"start": {
"line": 39,
"column": 22
},
"end": {
"line": 39,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1143,
"end": 1144,
"loc": {
"start": {
"line": 39,
"column": 27
},
"end": {
"line": 39,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "backgroundColor",
"start": 1144,
"end": 1159,
"loc": {
"start": {
"line": 39,
"column": 28
},
"end": {
"line": 39,
"column": 43
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1160,
"end": 1161,
"loc": {
"start": {
"line": 39,
"column": 44
},
"end": {
"line": 39,
"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": 1162,
"end": 1166,
"loc": {
"start": {
"line": 39,
"column": 46
},
"end": {
"line": 39,
"column": 50
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1166,
"end": 1167,
"loc": {
"start": {
"line": 39,
"column": 50
},
"end": {
"line": 39,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 1167,
"end": 1189,
"loc": {
"start": {
"line": 39,
"column": 51
},
"end": {
"line": 39,
"column": 73
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1189,
"end": 1190,
"loc": {
"start": {
"line": 39,
"column": 73
},
"end": {
"line": 39,
"column": 74
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 1190,
"end": 1197,
"loc": {
"start": {
"line": 39,
"column": 74
},
"end": {
"line": 39,
"column": 81
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1197,
"end": 1198,
"loc": {
"start": {
"line": 39,
"column": 81
},
"end": {
"line": 39,
"column": 82
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlightBgColor",
"start": 1198,
"end": 1230,
"loc": {
"start": {
"line": 39,
"column": 82
},
"end": {
"line": 39,
"column": 114
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 1231,
"end": 1233,
"loc": {
"start": {
"line": 39,
"column": 115
},
"end": {
"line": 39,
"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": 1234,
"end": 1243,
"loc": {
"start": {
"line": 39,
"column": 118
},
"end": {
"line": 39,
"column": 127
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1243,
"end": 1244,
"loc": {
"start": {
"line": 39,
"column": 127
},
"end": {
"line": 39,
"column": 128
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1258,
"end": 1267,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1267,
"end": 1268,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "style",
"start": 1268,
"end": 1273,
"loc": {
"start": {
"line": 40,
"column": 22
},
"end": {
"line": 40,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1273,
"end": 1274,
"loc": {
"start": {
"line": 40,
"column": 27
},
"end": {
"line": 40,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 1274,
"end": 1279,
"loc": {
"start": {
"line": 40,
"column": 28
},
"end": {
"line": 40,
"column": 33
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1280,
"end": 1281,
"loc": {
"start": {
"line": 40,
"column": 34
},
"end": {
"line": 40,
"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": 1282,
"end": 1286,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1286,
"end": 1287,
"loc": {
"start": {
"line": 40,
"column": 40
},
"end": {
"line": 40,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 1287,
"end": 1309,
"loc": {
"start": {
"line": 40,
"column": 41
},
"end": {
"line": 40,
"column": 63
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1309,
"end": 1310,
"loc": {
"start": {
"line": 40,
"column": 63
},
"end": {
"line": 40,
"column": 64
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 1310,
"end": 1317,
"loc": {
"start": {
"line": 40,
"column": 64
},
"end": {
"line": 40,
"column": 71
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1317,
"end": 1318,
"loc": {
"start": {
"line": 40,
"column": 71
},
"end": {
"line": 40,
"column": 72
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlightTextColor",
"start": 1318,
"end": 1352,
"loc": {
"start": {
"line": 40,
"column": 72
},
"end": {
"line": 40,
"column": 106
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 1353,
"end": 1355,
"loc": {
"start": {
"line": 40,
"column": 107
},
"end": {
"line": 40,
"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": 1356,
"end": 1363,
"loc": {
"start": {
"line": 40,
"column": 110
},
"end": {
"line": 40,
"column": 117
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1363,
"end": 1364,
"loc": {
"start": {
"line": 40,
"column": 117
},
"end": {
"line": 40,
"column": 118
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1376,
"end": 1377,
"loc": {
"start": {
"line": 41,
"column": 10
},
"end": {
"line": 41,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1387,
"end": 1388,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1388,
"end": 1389,
"loc": {
"start": {
"line": 42,
"column": 9
},
"end": {
"line": 42,
"column": 10
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1389,
"end": 1390,
"loc": {
"start": {
"line": 42,
"column": 10
},
"end": {
"line": 42,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1398,
"end": 1399,
"loc": {
"start": {
"line": 43,
"column": 6
},
"end": {
"line": 43,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1405,
"end": 1406,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1406,
"end": 1407,
"loc": {
"start": {
"line": 44,
"column": 5
},
"end": {
"line": 44,
"column": 6
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1407,
"end": 1408,
"loc": {
"start": {
"line": 44,
"column": 6
},
"end": {
"line": 44,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Removing button style on keyup",
"start": 1416,
"end": 1449,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 1455,
"end": 1463,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1463,
"end": 1464,
"loc": {
"start": {
"line": 47,
"column": 12
},
"end": {
"line": 47,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEventListener",
"start": 1464,
"end": 1480,
"loc": {
"start": {
"line": 47,
"column": 13
},
"end": {
"line": 47,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1480,
"end": 1481,
"loc": {
"start": {
"line": 47,
"column": 29
},
"end": {
"line": 47,
"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": 1481,
"end": 1488,
"loc": {
"start": {
"line": 47,
"column": 30
},
"end": {
"line": 47,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1488,
"end": 1489,
"loc": {
"start": {
"line": 47,
"column": 37
},
"end": {
"line": 47,
"column": 38
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1490,
"end": 1491,
"loc": {
"start": {
"line": 47,
"column": 39
},
"end": {
"line": 47,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1491,
"end": 1496,
"loc": {
"start": {
"line": 47,
"column": 40
},
"end": {
"line": 47,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1496,
"end": 1497,
"loc": {
"start": {
"line": 47,
"column": 45
},
"end": {
"line": 47,
"column": 46
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1498,
"end": 1500,
"loc": {
"start": {
"line": 47,
"column": 47
},
"end": {
"line": 47,
"column": 49
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1501,
"end": 1502,
"loc": {
"start": {
"line": 47,
"column": 50
},
"end": {
"line": 47,
"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": 1510,
"end": 1512,
"loc": {
"start": {
"line": 48,
"column": 6
},
"end": {
"line": 48,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1512,
"end": 1513,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"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": 1513,
"end": 1517,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1517,
"end": 1518,
"loc": {
"start": {
"line": 48,
"column": 13
},
"end": {
"line": 48,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 1518,
"end": 1540,
"loc": {
"start": {
"line": 48,
"column": 14
},
"end": {
"line": 48,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1540,
"end": 1541,
"loc": {
"start": {
"line": 48,
"column": 36
},
"end": {
"line": 48,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "options",
"start": 1541,
"end": 1548,
"loc": {
"start": {
"line": 48,
"column": 37
},
"end": {
"line": 48,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1548,
"end": 1549,
"loc": {
"start": {
"line": 48,
"column": 44
},
"end": {
"line": 48,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlight",
"start": 1549,
"end": 1574,
"loc": {
"start": {
"line": 48,
"column": 45
},
"end": {
"line": 48,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1574,
"end": 1575,
"loc": {
"start": {
"line": 48,
"column": 70
},
"end": {
"line": 48,
"column": 71
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1575,
"end": 1576,
"loc": {
"start": {
"line": 48,
"column": 71
},
"end": {
"line": 48,
"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": 1586,
"end": 1589,
"loc": {
"start": {
"line": 49,
"column": 8
},
"end": {
"line": 49,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 1590,
"end": 1603,
"loc": {
"start": {
"line": 49,
"column": 12
},
"end": {
"line": 49,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1604,
"end": 1605,
"loc": {
"start": {
"line": 49,
"column": 26
},
"end": {
"line": 49,
"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": 1606,
"end": 1610,
"loc": {
"start": {
"line": 49,
"column": 28
},
"end": {
"line": 49,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1610,
"end": 1611,
"loc": {
"start": {
"line": 49,
"column": 32
},
"end": {
"line": 49,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSimpleKeyboardLayoutKey",
"start": 1611,
"end": 1637,
"loc": {
"start": {
"line": 49,
"column": 33
},
"end": {
"line": 49,
"column": 59
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1637,
"end": 1638,
"loc": {
"start": {
"line": 49,
"column": 59
},
"end": {
"line": 49,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1638,
"end": 1643,
"loc": {
"start": {
"line": 49,
"column": 60
},
"end": {
"line": 49,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1643,
"end": 1644,
"loc": {
"start": {
"line": 49,
"column": 65
},
"end": {
"line": 49,
"column": 66
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1644,
"end": 1645,
"loc": {
"start": {
"line": 49,
"column": 66
},
"end": {
"line": 49,
"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": 1657,
"end": 1661,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1661,
"end": 1662,
"loc": {
"start": {
"line": 51,
"column": 12
},
"end": {
"line": 51,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "simpleKeyboardInstance",
"start": 1662,
"end": 1684,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1684,
"end": 1685,
"loc": {
"start": {
"line": 51,
"column": 35
},
"end": {
"line": 51,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dispatch",
"start": 1685,
"end": 1693,
"loc": {
"start": {
"line": 51,
"column": 36
},
"end": {
"line": 51,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1693,
"end": 1694,
"loc": {
"start": {
"line": 51,
"column": 44
},
"end": {
"line": 51,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 1694,
"end": 1702,
"loc": {
"start": {
"line": 51,
"column": 45
},
"end": {
"line": 51,
"column": 53
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1703,
"end": 1705,
"loc": {
"start": {
"line": 51,
"column": 54
},
"end": {
"line": 51,
"column": 56
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1706,
"end": 1707,
"loc": {
"start": {
"line": 51,
"column": 57
},
"end": {
"line": 51,
"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": 1719,
"end": 1722,
"loc": {
"start": {
"line": 52,
"column": 10
},
"end": {
"line": 52,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1723,
"end": 1732,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1733,
"end": 1734,
"loc": {
"start": {
"line": 52,
"column": 24
},
"end": {
"line": 52,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 1735,
"end": 1743,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1743,
"end": 1744,
"loc": {
"start": {
"line": 52,
"column": 34
},
"end": {
"line": 52,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getButtonElement",
"start": 1744,
"end": 1760,
"loc": {
"start": {
"line": 52,
"column": 35
},
"end": {
"line": 52,
"column": 51
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1760,
"end": 1761,
"loc": {
"start": {
"line": 52,
"column": 51
},
"end": {
"line": 52,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 1761,
"end": 1774,
"loc": {
"start": {
"line": 52,
"column": 52
},
"end": {
"line": 52,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1774,
"end": 1775,
"loc": {
"start": {
"line": 52,
"column": 65
},
"end": {
"line": 52,
"column": 66
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 1776,
"end": 1778,
"loc": {
"start": {
"line": 52,
"column": 67
},
"end": {
"line": 52,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "instance",
"start": 1779,
"end": 1787,
"loc": {
"start": {
"line": 52,
"column": 70
},
"end": {
"line": 52,
"column": 78
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1787,
"end": 1788,
"loc": {
"start": {
"line": 52,
"column": 78
},
"end": {
"line": 52,
"column": 79
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getButtonElement",
"start": 1788,
"end": 1804,
"loc": {
"start": {
"line": 52,
"column": 79
},
"end": {
"line": 52,
"column": 95
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1804,
"end": 1805,
"loc": {
"start": {
"line": 52,
"column": 95
},
"end": {
"line": 52,
"column": 96
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1805,
"end": 1806,
"loc": {
"start": {
"line": 52,
"column": 96
},
"end": {
"line": 52,
"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": 1806,
"end": 1807,
"loc": {
"start": {
"line": 52,
"column": 97
},
"end": {
"line": 52,
"column": 98
}
}
},
{
"type": {
"label": "${",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1807,
"end": 1809,
"loc": {
"start": {
"line": 52,
"column": 98
},
"end": {
"line": 52,
"column": 100
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonPressed",
"start": 1809,
"end": 1822,
"loc": {
"start": {
"line": 52,
"column": 100
},
"end": {
"line": 52,
"column": 113
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1822,
"end": 1823,
"loc": {
"start": {
"line": 52,
"column": 113
},
"end": {
"line": 52,
"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": 1823,
"end": 1824,
"loc": {
"start": {
"line": 52,
"column": 114
},
"end": {
"line": 52,
"column": 115
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1824,
"end": 1825,
"loc": {
"start": {
"line": 52,
"column": 115
},
"end": {
"line": 52,
"column": 116
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1825,
"end": 1826,
"loc": {
"start": {
"line": 52,
"column": 116
},
"end": {
"line": 52,
"column": 117
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1826,
"end": 1827,
"loc": {
"start": {
"line": 52,
"column": 117
},
"end": {
"line": 52,
"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": 1841,
"end": 1843,
"loc": {
"start": {
"line": 54,
"column": 10
},
"end": {
"line": 54,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1843,
"end": 1844,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1844,
"end": 1853,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1853,
"end": 1854,
"loc": {
"start": {
"line": 54,
"column": 22
},
"end": {
"line": 54,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1854,
"end": 1855,
"loc": {
"start": {
"line": 54,
"column": 23
},
"end": {
"line": 54,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buttonDOM",
"start": 1869,
"end": 1878,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1878,
"end": 1879,
"loc": {
"start": {
"line": 55,
"column": 21
},
"end": {
"line": 55,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeAttribute",
"start": 1879,
"end": 1894,
"loc": {
"start": {
"line": 55,
"column": 22
},
"end": {
"line": 55,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1894,
"end": 1895,
"loc": {
"start": {
"line": 55,
"column": 37
},
"end": {
"line": 55,
"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": 1895,
"end": 1902,
"loc": {
"start": {
"line": 55,
"column": 38
},
"end": {
"line": 55,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1902,
"end": 1903,
"loc": {
"start": {
"line": 55,
"column": 45
},
"end": {
"line": 55,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1903,
"end": 1904,
"loc": {
"start": {
"line": 55,
"column": 46
},
"end": {
"line": 55,
"column": 47
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1916,
"end": 1917,
"loc": {
"start": {
"line": 56,
"column": 10
},
"end": {
"line": 56,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1927,
"end": 1928,
"loc": {
"start": {
"line": 57,
"column": 8
},
"end": {
"line": 57,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1928,
"end": 1929,
"loc": {
"start": {
"line": 57,
"column": 9
},
"end": {
"line": 57,
"column": 10
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1929,
"end": 1930,
"loc": {
"start": {
"line": 57,
"column": 10
},
"end": {
"line": 57,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1938,
"end": 1939,
"loc": {
"start": {
"line": 58,
"column": 6
},
"end": {
"line": 58,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1945,
"end": 1946,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 59,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1946,
"end": 1947,
"loc": {
"start": {
"line": 59,
"column": 5
},
"end": {
"line": 59,
"column": 6
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1947,
"end": 1948,
"loc": {
"start": {
"line": 59,
"column": 6
},
"end": {
"line": 59,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1952,
"end": 1953,
"loc": {
"start": {
"line": 60,
"column": 2
},
"end": {
"line": 60,
"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": 1959,
"end": 2106,
"loc": {
"start": {
"line": 62,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSimpleKeyboardLayoutKey",
"start": 2110,
"end": 2136,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 66,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2136,
"end": 2137,
"loc": {
"start": {
"line": 66,
"column": 28
},
"end": {
"line": 66,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2137,
"end": 2142,
"loc": {
"start": {
"line": 66,
"column": 29
},
"end": {
"line": 66,
"column": 34
}
}
},
{
"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": 66,
"column": 34
},
"end": {
"line": 66,
"column": 35
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2143,
"end": 2144,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 36
}
}
},
{
"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": 2150,
"end": 2153,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2154,
"end": 2160,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2160,
"end": 2161,
"loc": {
"start": {
"line": 67,
"column": 14
},
"end": {
"line": 67,
"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": 2169,
"end": 2171,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 69,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2171,
"end": 2172,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2180,
"end": 2185,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2185,
"end": 2186,
"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": "code",
"start": 2186,
"end": 2190,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2190,
"end": 2191,
"loc": {
"start": {
"line": 70,
"column": 16
},
"end": {
"line": 70,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2191,
"end": 2199,
"loc": {
"start": {
"line": 70,
"column": 17
},
"end": {
"line": 70,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2199,
"end": 2200,
"loc": {
"start": {
"line": 70,
"column": 25
},
"end": {
"line": 70,
"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": 2200,
"end": 2208,
"loc": {
"start": {
"line": 70,
"column": 26
},
"end": {
"line": 70,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2208,
"end": 2209,
"loc": {
"start": {
"line": 70,
"column": 34
},
"end": {
"line": 70,
"column": 35
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2210,
"end": 2212,
"loc": {
"start": {
"line": 70,
"column": 36
},
"end": {
"line": 70,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2220,
"end": 2225,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2225,
"end": 2226,
"loc": {
"start": {
"line": 71,
"column": 11
},
"end": {
"line": 71,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2226,
"end": 2230,
"loc": {
"start": {
"line": 71,
"column": 12
},
"end": {
"line": 71,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2230,
"end": 2231,
"loc": {
"start": {
"line": 71,
"column": 16
},
"end": {
"line": 71,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2231,
"end": 2239,
"loc": {
"start": {
"line": 71,
"column": 17
},
"end": {
"line": 71,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2239,
"end": 2240,
"loc": {
"start": {
"line": 71,
"column": 25
},
"end": {
"line": 71,
"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": 2240,
"end": 2247,
"loc": {
"start": {
"line": 71,
"column": 26
},
"end": {
"line": 71,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2247,
"end": 2248,
"loc": {
"start": {
"line": 71,
"column": 33
},
"end": {
"line": 71,
"column": 34
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2249,
"end": 2251,
"loc": {
"start": {
"line": 71,
"column": 35
},
"end": {
"line": 71,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2259,
"end": 2264,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2264,
"end": 2265,
"loc": {
"start": {
"line": 72,
"column": 11
},
"end": {
"line": 72,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2265,
"end": 2269,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2269,
"end": 2270,
"loc": {
"start": {
"line": 72,
"column": 16
},
"end": {
"line": 72,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2270,
"end": 2278,
"loc": {
"start": {
"line": 72,
"column": 17
},
"end": {
"line": 72,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2278,
"end": 2279,
"loc": {
"start": {
"line": 72,
"column": 25
},
"end": {
"line": 72,
"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": 2279,
"end": 2286,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2286,
"end": 2287,
"loc": {
"start": {
"line": 72,
"column": 33
},
"end": {
"line": 72,
"column": 34
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2288,
"end": 2290,
"loc": {
"start": {
"line": 72,
"column": 35
},
"end": {
"line": 72,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2298,
"end": 2303,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2303,
"end": 2304,
"loc": {
"start": {
"line": 73,
"column": 11
},
"end": {
"line": 73,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2304,
"end": 2308,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2308,
"end": 2309,
"loc": {
"start": {
"line": 73,
"column": 16
},
"end": {
"line": 73,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2309,
"end": 2317,
"loc": {
"start": {
"line": 73,
"column": 17
},
"end": {
"line": 73,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2317,
"end": 2318,
"loc": {
"start": {
"line": 73,
"column": 25
},
"end": {
"line": 73,
"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": 2318,
"end": 2329,
"loc": {
"start": {
"line": 73,
"column": 26
},
"end": {
"line": 73,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2329,
"end": 2330,
"loc": {
"start": {
"line": 73,
"column": 37
},
"end": {
"line": 73,
"column": 38
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2331,
"end": 2333,
"loc": {
"start": {
"line": 73,
"column": 39
},
"end": {
"line": 73,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2341,
"end": 2346,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2346,
"end": 2347,
"loc": {
"start": {
"line": 74,
"column": 11
},
"end": {
"line": 74,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2347,
"end": 2351,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2351,
"end": 2352,
"loc": {
"start": {
"line": 74,
"column": 16
},
"end": {
"line": 74,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2352,
"end": 2360,
"loc": {
"start": {
"line": 74,
"column": 17
},
"end": {
"line": 74,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2360,
"end": 2361,
"loc": {
"start": {
"line": 74,
"column": 25
},
"end": {
"line": 74,
"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": 2361,
"end": 2370,
"loc": {
"start": {
"line": 74,
"column": 26
},
"end": {
"line": 74,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2370,
"end": 2371,
"loc": {
"start": {
"line": 74,
"column": 35
},
"end": {
"line": 74,
"column": 36
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2372,
"end": 2374,
"loc": {
"start": {
"line": 74,
"column": 37
},
"end": {
"line": 74,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2382,
"end": 2387,
"loc": {
"start": {
"line": 75,
"column": 6
},
"end": {
"line": 75,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2387,
"end": 2388,
"loc": {
"start": {
"line": 75,
"column": 11
},
"end": {
"line": 75,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2388,
"end": 2392,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2392,
"end": 2393,
"loc": {
"start": {
"line": 75,
"column": 16
},
"end": {
"line": 75,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2393,
"end": 2401,
"loc": {
"start": {
"line": 75,
"column": 17
},
"end": {
"line": 75,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2401,
"end": 2402,
"loc": {
"start": {
"line": 75,
"column": 25
},
"end": {
"line": 75,
"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": 2402,
"end": 2407,
"loc": {
"start": {
"line": 75,
"column": 26
},
"end": {
"line": 75,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2407,
"end": 2408,
"loc": {
"start": {
"line": 75,
"column": 31
},
"end": {
"line": 75,
"column": 32
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2409,
"end": 2411,
"loc": {
"start": {
"line": 75,
"column": 33
},
"end": {
"line": 75,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2419,
"end": 2424,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2424,
"end": 2425,
"loc": {
"start": {
"line": 76,
"column": 11
},
"end": {
"line": 76,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2425,
"end": 2429,
"loc": {
"start": {
"line": 76,
"column": 12
},
"end": {
"line": 76,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2429,
"end": 2430,
"loc": {
"start": {
"line": 76,
"column": 16
},
"end": {
"line": 76,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "includes",
"start": 2430,
"end": 2438,
"loc": {
"start": {
"line": 76,
"column": 17
},
"end": {
"line": 76,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2438,
"end": 2439,
"loc": {
"start": {
"line": 76,
"column": 25
},
"end": {
"line": 76,
"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": 2439,
"end": 2445,
"loc": {
"start": {
"line": 76,
"column": 26
},
"end": {
"line": 76,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2445,
"end": 2446,
"loc": {
"start": {
"line": 76,
"column": 32
},
"end": {
"line": 76,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2452,
"end": 2453,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 77,
"column": 5
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2453,
"end": 2454,
"loc": {
"start": {
"line": 77,
"column": 5
},
"end": {
"line": 77,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2462,
"end": 2468,
"loc": {
"start": {
"line": 78,
"column": 6
},
"end": {
"line": 78,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2469,
"end": 2470,
"loc": {
"start": {
"line": 78,
"column": 13
},
"end": {
"line": 78,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2471,
"end": 2476,
"loc": {
"start": {
"line": 78,
"column": 15
},
"end": {
"line": 78,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2476,
"end": 2477,
"loc": {
"start": {
"line": 78,
"column": 20
},
"end": {
"line": 78,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2477,
"end": 2481,
"loc": {
"start": {
"line": 78,
"column": 21
},
"end": {
"line": 78,
"column": 25
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2481,
"end": 2482,
"loc": {
"start": {
"line": 78,
"column": 25
},
"end": {
"line": 78,
"column": 26
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2488,
"end": 2489,
"loc": {
"start": {
"line": 79,
"column": 4
},
"end": {
"line": 79,
"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": 2490,
"end": 2494,
"loc": {
"start": {
"line": 79,
"column": 6
},
"end": {
"line": 79,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2495,
"end": 2496,
"loc": {
"start": {
"line": 79,
"column": 11
},
"end": {
"line": 79,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2504,
"end": 2510,
"loc": {
"start": {
"line": 80,
"column": 6
},
"end": {
"line": 80,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2511,
"end": 2512,
"loc": {
"start": {
"line": 80,
"column": 13
},
"end": {
"line": 80,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2513,
"end": 2518,
"loc": {
"start": {
"line": 80,
"column": 15
},
"end": {
"line": 80,
"column": 20
}
}
},
{
"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": 80,
"column": 20
},
"end": {
"line": 80,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "key",
"start": 2519,
"end": 2522,
"loc": {
"start": {
"line": 80,
"column": 21
},
"end": {
"line": 80,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2522,
"end": 2523,
"loc": {
"start": {
"line": 80,
"column": 24
},
"end": {
"line": 80,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2529,
"end": 2530,
"loc": {
"start": {
"line": 81,
"column": 4
},
"end": {
"line": 81,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ",
"start": 2538,
"end": 2607,
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 85,
"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": 2613,
"end": 2615,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 86,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2616,
"end": 2617,
"loc": {
"start": {
"line": 86,
"column": 7
},
"end": {
"line": 86,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2625,
"end": 2631,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 87,
"column": 12
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 2632,
"end": 2635,
"loc": {
"start": {
"line": 87,
"column": 13
},
"end": {
"line": 87,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2636,
"end": 2642,
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2642,
"end": 2643,
"loc": {
"start": {
"line": 87,
"column": 23
},
"end": {
"line": 87,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toUpperCase",
"start": 2643,
"end": 2654,
"loc": {
"start": {
"line": 87,
"column": 24
},
"end": {
"line": 87,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2654,
"end": 2655,
"loc": {
"start": {
"line": 87,
"column": 35
},
"end": {
"line": 87,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2655,
"end": 2656,
"loc": {
"start": {
"line": 87,
"column": 36
},
"end": {
"line": 87,
"column": 37
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2657,
"end": 2659,
"loc": {
"start": {
"line": 87,
"column": 38
},
"end": {
"line": 87,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2667,
"end": 2668,
"loc": {
"start": {
"line": 88,
"column": 6
},
"end": {
"line": 88,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2668,
"end": 2673,
"loc": {
"start": {
"line": 88,
"column": 7
},
"end": {
"line": 88,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2673,
"end": 2674,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2674,
"end": 2678,
"loc": {
"start": {
"line": 88,
"column": 13
},
"end": {
"line": 88,
"column": 17
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2678,
"end": 2679,
"loc": {
"start": {
"line": 88,
"column": 17
},
"end": {
"line": 88,
"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": 2679,
"end": 2680,
"loc": {
"start": {
"line": 88,
"column": 18
},
"end": {
"line": 88,
"column": 19
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2680,
"end": 2681,
"loc": {
"start": {
"line": 88,
"column": 19
},
"end": {
"line": 88,
"column": 20
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 2682,
"end": 2685,
"loc": {
"start": {
"line": 88,
"column": 21
},
"end": {
"line": 88,
"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": 2686,
"end": 2689,
"loc": {
"start": {
"line": 88,
"column": 25
},
"end": {
"line": 88,
"column": 28
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2690,
"end": 2692,
"loc": {
"start": {
"line": 88,
"column": 29
},
"end": {
"line": 88,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Number",
"start": 2693,
"end": 2699,
"loc": {
"start": {
"line": 88,
"column": 32
},
"end": {
"line": 88,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2699,
"end": 2700,
"loc": {
"start": {
"line": 88,
"column": 38
},
"end": {
"line": 88,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isInteger",
"start": 2700,
"end": 2709,
"loc": {
"start": {
"line": 88,
"column": 39
},
"end": {
"line": 88,
"column": 48
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2709,
"end": 2710,
"loc": {
"start": {
"line": 88,
"column": 48
},
"end": {
"line": 88,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Number",
"start": 2710,
"end": 2716,
"loc": {
"start": {
"line": 88,
"column": 49
},
"end": {
"line": 88,
"column": 55
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2716,
"end": 2717,
"loc": {
"start": {
"line": 88,
"column": 55
},
"end": {
"line": 88,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2717,
"end": 2722,
"loc": {
"start": {
"line": 88,
"column": 56
},
"end": {
"line": 88,
"column": 61
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2722,
"end": 2723,
"loc": {
"start": {
"line": 88,
"column": 61
},
"end": {
"line": 88,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2723,
"end": 2727,
"loc": {
"start": {
"line": 88,
"column": 62
},
"end": {
"line": 88,
"column": 66
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2727,
"end": 2728,
"loc": {
"start": {
"line": 88,
"column": 66
},
"end": {
"line": 88,
"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": 2728,
"end": 2729,
"loc": {
"start": {
"line": 88,
"column": 67
},
"end": {
"line": 88,
"column": 68
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2729,
"end": 2730,
"loc": {
"start": {
"line": 88,
"column": 68
},
"end": {
"line": 88,
"column": 69
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2730,
"end": 2731,
"loc": {
"start": {
"line": 88,
"column": 69
},
"end": {
"line": 88,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2731,
"end": 2732,
"loc": {
"start": {
"line": 88,
"column": 70
},
"end": {
"line": 88,
"column": 71
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2733,
"end": 2735,
"loc": {
"start": {
"line": 88,
"column": 72
},
"end": {
"line": 88,
"column": 74
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2736,
"end": 2741,
"loc": {
"start": {
"line": 88,
"column": 75
},
"end": {
"line": 88,
"column": 80
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2741,
"end": 2742,
"loc": {
"start": {
"line": 88,
"column": 80
},
"end": {
"line": 88,
"column": 81
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "code",
"start": 2742,
"end": 2746,
"loc": {
"start": {
"line": 88,
"column": 81
},
"end": {
"line": 88,
"column": 85
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2746,
"end": 2747,
"loc": {
"start": {
"line": 88,
"column": 85
},
"end": {
"line": 88,
"column": 86
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 2747,
"end": 2753,
"loc": {
"start": {
"line": 88,
"column": 86
},
"end": {
"line": 88,
"column": 92
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 2754,
"end": 2756,
"loc": {
"start": {
"line": 88,
"column": 93
},
"end": {
"line": 88,
"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": 2757,
"end": 2758,
"loc": {
"start": {
"line": 88,
"column": 96
},
"end": {
"line": 88,
"column": 97
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2758,
"end": 2759,
"loc": {
"start": {
"line": 88,
"column": 97
},
"end": {
"line": 88,
"column": 98
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2765,
"end": 2766,
"loc": {
"start": {
"line": 89,
"column": 4
},
"end": {
"line": 89,
"column": 5
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2767,
"end": 2768,
"loc": {
"start": {
"line": 89,
"column": 6
},
"end": {
"line": 89,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2776,
"end": 2782,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 90,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2783,
"end": 2784,
"loc": {
"start": {
"line": 90,
"column": 13
},
"end": {
"line": 90,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2785,
"end": 2791,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2791,
"end": 2792,
"loc": {
"start": {
"line": 90,
"column": 21
},
"end": {
"line": 90,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toLowerCase",
"start": 2792,
"end": 2803,
"loc": {
"start": {
"line": 90,
"column": 22
},
"end": {
"line": 90,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2803,
"end": 2804,
"loc": {
"start": {
"line": 90,
"column": 33
},
"end": {
"line": 90,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2804,
"end": 2805,
"loc": {
"start": {
"line": 90,
"column": 34
},
"end": {
"line": 90,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2805,
"end": 2806,
"loc": {
"start": {
"line": 90,
"column": 35
},
"end": {
"line": 90,
"column": 36
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2812,
"end": 2813,
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 91,
"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": 2821,
"end": 2827,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 93,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "output",
"start": 2828,
"end": 2834,
"loc": {
"start": {
"line": 93,
"column": 11
},
"end": {
"line": 93,
"column": 17
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2834,
"end": 2835,
"loc": {
"start": {
"line": 93,
"column": 17
},
"end": {
"line": 93,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2839,
"end": 2840,
"loc": {
"start": {
"line": 94,
"column": 2
},
"end": {
"line": 94,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2842,
"end": 2843,
"loc": {
"start": {
"line": 95,
"column": 0
},
"end": {
"line": 95,
"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": 2847,
"end": 2853,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 97,
"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": 2854,
"end": 2861,
"loc": {
"start": {
"line": 97,
"column": 7
},
"end": {
"line": 97,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "PhysicalKeyboard",
"start": 2862,
"end": 2878,
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2878,
"end": 2879,
"loc": {
"start": {
"line": 97,
"column": 31
},
"end": {
"line": 97,
"column": 32
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2879,
"end": 2879,
"loc": {
"start": {
"line": 97,
"column": 32
},
"end": {
"line": 97,
"column": 32
}
}
}
]
}