{ "type": "File", "start": 0, "end": 2743, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 92, "column": 32 } }, "program": { "type": "Program", "start": 0, "end": 2743, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 92, "column": 32 } }, "sourceType": "module", "body": [ { "type": "Identifier", "start": 40, "end": 2707, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 90, "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": 2707, "loc": { "start": { "line": 4, "column": 23 }, "end": { "line": 90, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 140, "end": 344, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 15, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 140, "end": 151, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 13 }, "identifierName": "constructor" }, "name": "constructor", "leadingComments": null }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 152, "end": 174, "loc": { "start": { "line": 8, "column": 14 }, "end": { "line": 8, "column": 36 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" } ], "body": { "type": "BlockStatement", "start": 175, "end": 344, "loc": { "start": { "line": 8, "column": 37 }, "end": { "line": 15, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 250, "end": 303, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 57 } }, "expression": { "type": "AssignmentExpression", "start": 250, "end": 302, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 56 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 250, "end": 277, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 31 } }, "object": { "type": "ThisExpression", "start": 250, "end": 254, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 8 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 255, "end": 277, "loc": { "start": { "line": 12, "column": 9 }, "end": { "line": 12, "column": 31 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 280, "end": 302, "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 56 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", "start": 182, "end": 244, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 7 } } } ] }, { "type": "ExpressionStatement", "start": 311, "end": 339, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 32 } }, "expression": { "type": "CallExpression", "start": 311, "end": 338, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 311, "end": 336, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 29 } }, "object": { "type": "ThisExpression", "start": 311, "end": 315, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 8 } } }, "property": { "type": "Identifier", "start": 316, "end": 336, "loc": { "start": { "line": 14, "column": 9 }, "end": { "line": 14, "column": 29 }, "identifierName": "initKeyboardListener" }, "name": "initKeyboardListener" }, "computed": false }, "arguments": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ", "start": 68, "end": 136, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 7, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Initializes key event listeners\r\n ", "start": 350, "end": 398, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 19, "column": 5 } } } ] }, { "type": "ClassProperty", "start": 402, "end": 1718, "loc": { "start": { "line": 20, "column": 2 }, "end": { "line": 51, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 402, "end": 422, "loc": { "start": { "line": 20, "column": 2 }, "end": { "line": 20, "column": 22 }, "identifierName": "initKeyboardListener" }, "name": "initKeyboardListener", "leadingComments": null }, "value": { "type": "ArrowFunctionExpression", "start": 425, "end": 1718, "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 51, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 431, "end": 1718, "loc": { "start": { "line": 20, "column": 31 }, "end": { "line": 51, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 477, "end": 1173, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 35, "column": 7 } }, "expression": { "type": "CallExpression", "start": 477, "end": 1172, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 35, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 477, "end": 502, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 29 } }, "object": { "type": "Identifier", "start": 477, "end": 485, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 12 }, "identifierName": "document" }, "name": "document", "leadingComments": null }, "property": { "type": "Identifier", "start": 486, "end": 502, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 29 }, "identifierName": "addEventListener" }, "name": "addEventListener" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "StringLiteral", "start": 503, "end": 512, "loc": { "start": { "line": 22, "column": 30 }, "end": { "line": 22, "column": 39 } }, "extra": { "rawValue": "keydown", "raw": "\"keydown\"" }, "value": "keydown" }, { "type": "ArrowFunctionExpression", "start": 514, "end": 1171, "loc": { "start": { "line": 22, "column": 41 }, "end": { "line": 35, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 515, "end": 520, "loc": { "start": { "line": 22, "column": 42 }, "end": { "line": 22, "column": 47 }, "identifierName": "event" }, "name": "event" } ], "body": { "type": "BlockStatement", "start": 525, "end": 1171, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 35, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 534, "end": 1164, "loc": { "start": { "line": 23, "column": 6 }, "end": { "line": 34, "column": 7 } }, "test": { "type": "MemberExpression", "start": 537, "end": 598, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 70 } }, "object": { "type": "MemberExpression", "start": 537, "end": 572, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 44 } }, "object": { "type": "MemberExpression", "start": 537, "end": 564, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 36 } }, "object": { "type": "ThisExpression", "start": 537, "end": 541, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 13 } } }, "property": { "type": "Identifier", "start": 542, "end": 564, "loc": { "start": { "line": 23, "column": 14 }, "end": { "line": 23, "column": 36 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 565, "end": 572, "loc": { "start": { "line": 23, "column": 37 }, "end": { "line": 23, "column": 44 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 573, "end": 598, "loc": { "start": { "line": 23, "column": 45 }, "end": { "line": 23, "column": 70 }, "identifierName": "physicalKeyboardHighlight" }, "name": "physicalKeyboardHighlight" }, "computed": false }, "consequent": { "type": "BlockStatement", "start": 599, "end": 1164, "loc": { "start": { "line": 23, "column": 71 }, "end": { "line": 34, "column": 7 } }, "body": [ { "type": "VariableDeclaration", "start": 610, "end": 669, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 67 } }, "declarations": [ { "type": "VariableDeclarator", "start": 614, "end": 668, "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 66 } }, "id": { "type": "Identifier", "start": 614, "end": 627, "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 25 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" }, "init": { "type": "CallExpression", "start": 630, "end": 668, "loc": { "start": { "line": 24, "column": 28 }, "end": { "line": 24, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 630, "end": 661, "loc": { "start": { "line": 24, "column": 28 }, "end": { "line": 24, "column": 59 } }, "object": { "type": "ThisExpression", "start": 630, "end": 634, "loc": { "start": { "line": 24, "column": 28 }, "end": { "line": 24, "column": 32 } } }, "property": { "type": "Identifier", "start": 635, "end": 661, "loc": { "start": { "line": 24, "column": 33 }, "end": { "line": 24, "column": 59 }, "identifierName": "getSimpleKeyboardLayoutKey" }, "name": "getSimpleKeyboardLayoutKey" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 662, "end": 667, "loc": { "start": { "line": 24, "column": 60 }, "end": { "line": 24, "column": 65 }, "identifierName": "event" }, "name": "event" } ] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 681, "end": 1155, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 33, "column": 11 } }, "expression": { "type": "CallExpression", "start": 681, "end": 1154, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 33, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 681, "end": 717, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 44 } }, "object": { "type": "MemberExpression", "start": 681, "end": 708, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 35 } }, "object": { "type": "ThisExpression", "start": 681, "end": 685, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 12 } } }, "property": { "type": "Identifier", "start": 686, "end": 708, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 35 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 709, "end": 717, "loc": { "start": { "line": 26, "column": 36 }, "end": { "line": 26, "column": 44 }, "identifierName": "dispatch" }, "name": "dispatch" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 718, "end": 1153, "loc": { "start": { "line": 26, "column": 45 }, "end": { "line": 33, "column": 9 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 718, "end": 726, "loc": { "start": { "line": 26, "column": 45 }, "end": { "line": 26, "column": 53 }, "identifierName": "instance" }, "name": "instance" } ], "body": { "type": "BlockStatement", "start": 730, "end": 1153, "loc": { "start": { "line": 26, "column": 57 }, "end": { "line": 33, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 743, "end": 851, "loc": { "start": { "line": 27, "column": 10 }, "end": { "line": 27, "column": 118 } }, "declarations": [ { "type": "VariableDeclarator", "start": 747, "end": 850, "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 117 } }, "id": { "type": "Identifier", "start": 747, "end": 756, "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 23 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "init": { "type": "LogicalExpression", "start": 759, "end": 850, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 117 } }, "left": { "type": "CallExpression", "start": 759, "end": 799, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 759, "end": 784, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 51 } }, "object": { "type": "Identifier", "start": 759, "end": 767, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 34 }, "identifierName": "instance" }, "name": "instance" }, "property": { "type": "Identifier", "start": 768, "end": 784, "loc": { "start": { "line": 27, "column": 35 }, "end": { "line": 27, "column": 51 }, "identifierName": "getButtonElement" }, "name": "getButtonElement" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 785, "end": 798, "loc": { "start": { "line": 27, "column": 52 }, "end": { "line": 27, "column": 65 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" } ] }, "operator": "||", "right": { "type": "CallExpression", "start": 803, "end": 850, "loc": { "start": { "line": 27, "column": 70 }, "end": { "line": 27, "column": 117 } }, "callee": { "type": "MemberExpression", "start": 803, "end": 828, "loc": { "start": { "line": 27, "column": 70 }, "end": { "line": 27, "column": 95 } }, "object": { "type": "Identifier", "start": 803, "end": 811, "loc": { "start": { "line": 27, "column": 70 }, "end": { "line": 27, "column": 78 }, "identifierName": "instance" }, "name": "instance" }, "property": { "type": "Identifier", "start": 812, "end": 828, "loc": { "start": { "line": 27, "column": 79 }, "end": { "line": 27, "column": 95 }, "identifierName": "getButtonElement" }, "name": "getButtonElement" }, "computed": false }, "arguments": [ { "type": "TemplateLiteral", "start": 829, "end": 849, "loc": { "start": { "line": 27, "column": 96 }, "end": { "line": 27, "column": 116 } }, "expressions": [ { "type": "Identifier", "start": 833, "end": 846, "loc": { "start": { "line": 27, "column": 100 }, "end": { "line": 27, "column": 113 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" } ], "quasis": [ { "type": "TemplateElement", "start": 830, "end": 831, "loc": { "start": { "line": 27, "column": 97 }, "end": { "line": 27, "column": 98 } }, "value": { "raw": "{", "cooked": "{" }, "tail": false }, { "type": "TemplateElement", "start": 847, "end": 848, "loc": { "start": { "line": 27, "column": 114 }, "end": { "line": 27, "column": 115 } }, "value": { "raw": "}", "cooked": "}" }, "tail": true } ] } ] } } } ], "kind": "let" }, { "type": "IfStatement", "start": 865, "end": 1142, "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 32, "column": 11 } }, "test": { "type": "Identifier", "start": 868, "end": 877, "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 22 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "consequent": { "type": "BlockStatement", "start": 878, "end": 1142, "loc": { "start": { "line": 29, "column": 23 }, "end": { "line": 32, "column": 11 } }, "body": [ { "type": "ExpressionStatement", "start": 893, "end": 1009, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 128 } }, "expression": { "type": "AssignmentExpression", "start": 893, "end": 1008, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 127 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 893, "end": 924, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 43 } }, "object": { "type": "MemberExpression", "start": 893, "end": 908, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 27 } }, "object": { "type": "Identifier", "start": 893, "end": 902, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 21 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "property": { "type": "Identifier", "start": 903, "end": 908, "loc": { "start": { "line": 30, "column": 22 }, "end": { "line": 30, "column": 27 }, "identifierName": "style" }, "name": "style" }, "computed": false }, "property": { "type": "Identifier", "start": 909, "end": 924, "loc": { "start": { "line": 30, "column": 28 }, "end": { "line": 30, "column": 43 }, "identifierName": "backgroundColor" }, "name": "backgroundColor" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 927, "end": 1008, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 127 } }, "left": { "type": "MemberExpression", "start": 927, "end": 995, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 114 } }, "object": { "type": "MemberExpression", "start": 927, "end": 962, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 81 } }, "object": { "type": "MemberExpression", "start": 927, "end": 954, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 73 } }, "object": { "type": "ThisExpression", "start": 927, "end": 931, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 50 } } }, "property": { "type": "Identifier", "start": 932, "end": 954, "loc": { "start": { "line": 30, "column": 51 }, "end": { "line": 30, "column": 73 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 955, "end": 962, "loc": { "start": { "line": 30, "column": 74 }, "end": { "line": 30, "column": 81 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 963, "end": 995, "loc": { "start": { "line": 30, "column": 82 }, "end": { "line": 30, "column": 114 }, "identifierName": "physicalKeyboardHighlightBgColor" }, "name": "physicalKeyboardHighlightBgColor" }, "computed": false }, "operator": "||", "right": { "type": "StringLiteral", "start": 999, "end": 1008, "loc": { "start": { "line": 30, "column": 118 }, "end": { "line": 30, "column": 127 } }, "extra": { "rawValue": "#9ab4d0", "raw": "\"#9ab4d0\"" }, "value": "#9ab4d0" } } } }, { "type": "ExpressionStatement", "start": 1023, "end": 1129, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 118 } }, "expression": { "type": "AssignmentExpression", "start": 1023, "end": 1128, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 117 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1023, "end": 1044, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 33 } }, "object": { "type": "MemberExpression", "start": 1023, "end": 1038, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 27 } }, "object": { "type": "Identifier", "start": 1023, "end": 1032, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 21 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "property": { "type": "Identifier", "start": 1033, "end": 1038, "loc": { "start": { "line": 31, "column": 22 }, "end": { "line": 31, "column": 27 }, "identifierName": "style" }, "name": "style" }, "computed": false }, "property": { "type": "Identifier", "start": 1039, "end": 1044, "loc": { "start": { "line": 31, "column": 28 }, "end": { "line": 31, "column": 33 }, "identifierName": "color" }, "name": "color" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 1047, "end": 1128, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 117 } }, "left": { "type": "MemberExpression", "start": 1047, "end": 1117, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 106 } }, "object": { "type": "MemberExpression", "start": 1047, "end": 1082, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 71 } }, "object": { "type": "MemberExpression", "start": 1047, "end": 1074, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 63 } }, "object": { "type": "ThisExpression", "start": 1047, "end": 1051, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 40 } } }, "property": { "type": "Identifier", "start": 1052, "end": 1074, "loc": { "start": { "line": 31, "column": 41 }, "end": { "line": 31, "column": 63 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 1075, "end": 1082, "loc": { "start": { "line": 31, "column": 64 }, "end": { "line": 31, "column": 71 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 1083, "end": 1117, "loc": { "start": { "line": 31, "column": 72 }, "end": { "line": 31, "column": 106 }, "identifierName": "physicalKeyboardHighlightTextColor" }, "name": "physicalKeyboardHighlightTextColor" }, "computed": false }, "operator": "||", "right": { "type": "StringLiteral", "start": 1121, "end": 1128, "loc": { "start": { "line": 31, "column": 110 }, "end": { "line": 31, "column": 117 } }, "extra": { "rawValue": "white", "raw": "\"white\"" }, "value": "white" } } } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ] } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Adding button style on keydown", "start": 438, "end": 471, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 37 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Removing button style on keyup", "start": 1181, "end": 1214, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 37 } } } ] }, { "type": "ExpressionStatement", "start": 1220, "end": 1713, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 50, "column": 7 } }, "expression": { "type": "CallExpression", "start": 1220, "end": 1712, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 50, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 1220, "end": 1245, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 29 } }, "object": { "type": "Identifier", "start": 1220, "end": 1228, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 12 }, "identifierName": "document" }, "name": "document", "leadingComments": null }, "property": { "type": "Identifier", "start": 1229, "end": 1245, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 29 }, "identifierName": "addEventListener" }, "name": "addEventListener" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "StringLiteral", "start": 1246, "end": 1253, "loc": { "start": { "line": 38, "column": 30 }, "end": { "line": 38, "column": 37 } }, "extra": { "rawValue": "keyup", "raw": "\"keyup\"" }, "value": "keyup" }, { "type": "ArrowFunctionExpression", "start": 1255, "end": 1711, "loc": { "start": { "line": 38, "column": 39 }, "end": { "line": 50, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1256, "end": 1261, "loc": { "start": { "line": 38, "column": 40 }, "end": { "line": 38, "column": 45 }, "identifierName": "event" }, "name": "event" } ], "body": { "type": "BlockStatement", "start": 1266, "end": 1711, "loc": { "start": { "line": 38, "column": 50 }, "end": { "line": 50, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 1275, "end": 1704, "loc": { "start": { "line": 39, "column": 6 }, "end": { "line": 49, "column": 7 } }, "test": { "type": "MemberExpression", "start": 1278, "end": 1339, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 70 } }, "object": { "type": "MemberExpression", "start": 1278, "end": 1313, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 44 } }, "object": { "type": "MemberExpression", "start": 1278, "end": 1305, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 36 } }, "object": { "type": "ThisExpression", "start": 1278, "end": 1282, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 13 } } }, "property": { "type": "Identifier", "start": 1283, "end": 1305, "loc": { "start": { "line": 39, "column": 14 }, "end": { "line": 39, "column": 36 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 1306, "end": 1313, "loc": { "start": { "line": 39, "column": 37 }, "end": { "line": 39, "column": 44 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 1314, "end": 1339, "loc": { "start": { "line": 39, "column": 45 }, "end": { "line": 39, "column": 70 }, "identifierName": "physicalKeyboardHighlight" }, "name": "physicalKeyboardHighlight" }, "computed": false }, "consequent": { "type": "BlockStatement", "start": 1340, "end": 1704, "loc": { "start": { "line": 39, "column": 71 }, "end": { "line": 49, "column": 7 } }, "body": [ { "type": "VariableDeclaration", "start": 1351, "end": 1410, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 67 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1355, "end": 1409, "loc": { "start": { "line": 40, "column": 12 }, "end": { "line": 40, "column": 66 } }, "id": { "type": "Identifier", "start": 1355, "end": 1368, "loc": { "start": { "line": 40, "column": 12 }, "end": { "line": 40, "column": 25 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" }, "init": { "type": "CallExpression", "start": 1371, "end": 1409, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 1371, "end": 1402, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 59 } }, "object": { "type": "ThisExpression", "start": 1371, "end": 1375, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 32 } } }, "property": { "type": "Identifier", "start": 1376, "end": 1402, "loc": { "start": { "line": 40, "column": 33 }, "end": { "line": 40, "column": 59 }, "identifierName": "getSimpleKeyboardLayoutKey" }, "name": "getSimpleKeyboardLayoutKey" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1403, "end": 1408, "loc": { "start": { "line": 40, "column": 60 }, "end": { "line": 40, "column": 65 }, "identifierName": "event" }, "name": "event" } ] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 1422, "end": 1695, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 48, "column": 11 } }, "expression": { "type": "CallExpression", "start": 1422, "end": 1694, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 48, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 1422, "end": 1458, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 44 } }, "object": { "type": "MemberExpression", "start": 1422, "end": 1449, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 35 } }, "object": { "type": "ThisExpression", "start": 1422, "end": 1426, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 12 } } }, "property": { "type": "Identifier", "start": 1427, "end": 1449, "loc": { "start": { "line": 42, "column": 13 }, "end": { "line": 42, "column": 35 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 1450, "end": 1458, "loc": { "start": { "line": 42, "column": 36 }, "end": { "line": 42, "column": 44 }, "identifierName": "dispatch" }, "name": "dispatch" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 1459, "end": 1693, "loc": { "start": { "line": 42, "column": 45 }, "end": { "line": 48, "column": 9 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1459, "end": 1467, "loc": { "start": { "line": 42, "column": 45 }, "end": { "line": 42, "column": 53 }, "identifierName": "instance" }, "name": "instance" } ], "body": { "type": "BlockStatement", "start": 1471, "end": 1693, "loc": { "start": { "line": 42, "column": 57 }, "end": { "line": 48, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 1484, "end": 1592, "loc": { "start": { "line": 43, "column": 10 }, "end": { "line": 43, "column": 118 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1488, "end": 1591, "loc": { "start": { "line": 43, "column": 14 }, "end": { "line": 43, "column": 117 } }, "id": { "type": "Identifier", "start": 1488, "end": 1497, "loc": { "start": { "line": 43, "column": 14 }, "end": { "line": 43, "column": 23 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "init": { "type": "LogicalExpression", "start": 1500, "end": 1591, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 117 } }, "left": { "type": "CallExpression", "start": 1500, "end": 1540, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 1500, "end": 1525, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 51 } }, "object": { "type": "Identifier", "start": 1500, "end": 1508, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 34 }, "identifierName": "instance" }, "name": "instance" }, "property": { "type": "Identifier", "start": 1509, "end": 1525, "loc": { "start": { "line": 43, "column": 35 }, "end": { "line": 43, "column": 51 }, "identifierName": "getButtonElement" }, "name": "getButtonElement" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1526, "end": 1539, "loc": { "start": { "line": 43, "column": 52 }, "end": { "line": 43, "column": 65 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" } ] }, "operator": "||", "right": { "type": "CallExpression", "start": 1544, "end": 1591, "loc": { "start": { "line": 43, "column": 70 }, "end": { "line": 43, "column": 117 } }, "callee": { "type": "MemberExpression", "start": 1544, "end": 1569, "loc": { "start": { "line": 43, "column": 70 }, "end": { "line": 43, "column": 95 } }, "object": { "type": "Identifier", "start": 1544, "end": 1552, "loc": { "start": { "line": 43, "column": 70 }, "end": { "line": 43, "column": 78 }, "identifierName": "instance" }, "name": "instance" }, "property": { "type": "Identifier", "start": 1553, "end": 1569, "loc": { "start": { "line": 43, "column": 79 }, "end": { "line": 43, "column": 95 }, "identifierName": "getButtonElement" }, "name": "getButtonElement" }, "computed": false }, "arguments": [ { "type": "TemplateLiteral", "start": 1570, "end": 1590, "loc": { "start": { "line": 43, "column": 96 }, "end": { "line": 43, "column": 116 } }, "expressions": [ { "type": "Identifier", "start": 1574, "end": 1587, "loc": { "start": { "line": 43, "column": 100 }, "end": { "line": 43, "column": 113 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" } ], "quasis": [ { "type": "TemplateElement", "start": 1571, "end": 1572, "loc": { "start": { "line": 43, "column": 97 }, "end": { "line": 43, "column": 98 } }, "value": { "raw": "{", "cooked": "{" }, "tail": false }, { "type": "TemplateElement", "start": 1588, "end": 1589, "loc": { "start": { "line": 43, "column": 114 }, "end": { "line": 43, "column": 115 } }, "value": { "raw": "}", "cooked": "}" }, "tail": true } ] } ] } } } ], "kind": "let" }, { "type": "IfStatement", "start": 1606, "end": 1682, "loc": { "start": { "line": 45, "column": 10 }, "end": { "line": 47, "column": 11 } }, "test": { "type": "Identifier", "start": 1609, "end": 1618, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 22 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "consequent": { "type": "BlockStatement", "start": 1619, "end": 1682, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 47, "column": 11 } }, "body": [ { "type": "ExpressionStatement", "start": 1634, "end": 1669, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 47 } }, "expression": { "type": "CallExpression", "start": 1634, "end": 1668, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 46 } }, "callee": { "type": "MemberExpression", "start": 1634, "end": 1659, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 37 } }, "object": { "type": "Identifier", "start": 1634, "end": 1643, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 21 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "property": { "type": "Identifier", "start": 1644, "end": 1659, "loc": { "start": { "line": 46, "column": 22 }, "end": { "line": 46, "column": 37 }, "identifierName": "removeAttribute" }, "name": "removeAttribute" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 1660, "end": 1667, "loc": { "start": { "line": 46, "column": 38 }, "end": { "line": 46, "column": 45 } }, "extra": { "rawValue": "style", "raw": "\"style\"" }, "value": "style" } ] } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ] } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Removing button style on keyup", "start": 1181, "end": 1214, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 37 } } } ] } ], "directives": [], "trailingComments": null }, "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Initializes key event listeners\r\n ", "start": 350, "end": 398, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 19, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", "start": 1724, "end": 1871, "loc": { "start": { "line": 53, "column": 2 }, "end": { "line": 56, "column": 5 } } } ] }, { "type": "ClassProperty", "start": 1875, "end": 2704, "loc": { "start": { "line": 57, "column": 2 }, "end": { "line": 89, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1875, "end": 1901, "loc": { "start": { "line": 57, "column": 2 }, "end": { "line": 57, "column": 28 }, "identifierName": "getSimpleKeyboardLayoutKey" }, "name": "getSimpleKeyboardLayoutKey", "leadingComments": null }, "value": { "type": "ArrowFunctionExpression", "start": 1904, "end": 2704, "loc": { "start": { "line": 57, "column": 31 }, "end": { "line": 89, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1905, "end": 1910, "loc": { "start": { "line": 57, "column": 32 }, "end": { "line": 57, "column": 37 }, "identifierName": "event" }, "name": "event" } ], "body": { "type": "BlockStatement", "start": 1915, "end": 2704, "loc": { "start": { "line": 57, "column": 42 }, "end": { "line": 89, "column": 3 } }, "body": [ { "type": "IfStatement", "start": 1922, "end": 2002, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 60, "column": 5 } }, "test": { "type": "MemberExpression", "start": 1925, "end": 1966, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 48 } }, "object": { "type": "MemberExpression", "start": 1925, "end": 1960, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 42 } }, "object": { "type": "MemberExpression", "start": 1925, "end": 1952, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 34 } }, "object": { "type": "ThisExpression", "start": 1925, "end": 1929, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 11 } } }, "property": { "type": "Identifier", "start": 1930, "end": 1952, "loc": { "start": { "line": 58, "column": 12 }, "end": { "line": 58, "column": 34 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 1953, "end": 1960, "loc": { "start": { "line": 58, "column": 35 }, "end": { "line": 58, "column": 42 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 1961, "end": 1966, "loc": { "start": { "line": 58, "column": 43 }, "end": { "line": 58, "column": 48 }, "identifierName": "debug" }, "name": "debug" }, "computed": false }, "consequent": { "type": "BlockStatement", "start": 1967, "end": 2002, "loc": { "start": { "line": 58, "column": 49 }, "end": { "line": 60, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 1976, "end": 1995, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 25 } }, "expression": { "type": "CallExpression", "start": 1976, "end": 1994, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 24 } }, "callee": { "type": "MemberExpression", "start": 1976, "end": 1987, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 17 } }, "object": { "type": "Identifier", "start": 1976, "end": 1983, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 13 }, "identifierName": "console" }, "name": "console" }, "property": { "type": "Identifier", "start": 1984, "end": 1987, "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 17 }, "identifierName": "log" }, "name": "log" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1988, "end": 1993, "loc": { "start": { "line": 59, "column": 18 }, "end": { "line": 59, "column": 23 }, "identifierName": "event" }, "name": "event" } ] } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 2014, "end": 2025, "loc": { "start": { "line": 62, "column": 4 }, "end": { "line": 62, "column": 15 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2018, "end": 2024, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 14 } }, "id": { "type": "Identifier", "start": 2018, "end": 2024, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 14 }, "identifierName": "output" }, "name": "output" }, "init": null } ], "kind": "let" }, { "type": "IfStatement", "start": 2033, "end": 2394, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 76, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 2044, "end": 2310, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 71, "column": 33 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2272, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 70, "column": 32 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2235, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 69, "column": 36 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2194, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 68, "column": 38 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2151, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 67, "column": 34 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2112, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 66, "column": 34 } }, "left": { "type": "CallExpression", "start": 2044, "end": 2073, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 35 } }, "callee": { "type": "MemberExpression", "start": 2044, "end": 2063, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2044, "end": 2054, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 16 } }, "object": { "type": "Identifier", "start": 2044, "end": 2049, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2050, "end": 2054, "loc": { "start": { "line": 65, "column": 12 }, "end": { "line": 65, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2055, "end": 2063, "loc": { "start": { "line": 65, "column": 17 }, "end": { "line": 65, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2064, "end": 2072, "loc": { "start": { "line": 65, "column": 26 }, "end": { "line": 65, "column": 34 } }, "extra": { "rawValue": "Numpad", "raw": "\"Numpad\"" }, "value": "Numpad" } ] }, "operator": "||", "right": { "type": "CallExpression", "start": 2084, "end": 2112, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 2084, "end": 2103, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2084, "end": 2094, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 16 } }, "object": { "type": "Identifier", "start": 2084, "end": 2089, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2090, "end": 2094, "loc": { "start": { "line": 66, "column": 12 }, "end": { "line": 66, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2095, "end": 2103, "loc": { "start": { "line": 66, "column": 17 }, "end": { "line": 66, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2104, "end": 2111, "loc": { "start": { "line": 66, "column": 26 }, "end": { "line": 66, "column": 33 } }, "extra": { "rawValue": "Shift", "raw": "\"Shift\"" }, "value": "Shift" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2123, "end": 2151, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 2123, "end": 2142, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2123, "end": 2133, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 16 } }, "object": { "type": "Identifier", "start": 2123, "end": 2128, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2129, "end": 2133, "loc": { "start": { "line": 67, "column": 12 }, "end": { "line": 67, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2134, "end": 2142, "loc": { "start": { "line": 67, "column": 17 }, "end": { "line": 67, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2143, "end": 2150, "loc": { "start": { "line": 67, "column": 26 }, "end": { "line": 67, "column": 33 } }, "extra": { "rawValue": "Space", "raw": "\"Space\"" }, "value": "Space" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2162, "end": 2194, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 38 } }, "callee": { "type": "MemberExpression", "start": 2162, "end": 2181, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2162, "end": 2172, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 16 } }, "object": { "type": "Identifier", "start": 2162, "end": 2167, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2168, "end": 2172, "loc": { "start": { "line": 68, "column": 12 }, "end": { "line": 68, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2173, "end": 2181, "loc": { "start": { "line": 68, "column": 17 }, "end": { "line": 68, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2182, "end": 2193, "loc": { "start": { "line": 68, "column": 26 }, "end": { "line": 68, "column": 37 } }, "extra": { "rawValue": "Backspace", "raw": "\"Backspace\"" }, "value": "Backspace" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2205, "end": 2235, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 36 } }, "callee": { "type": "MemberExpression", "start": 2205, "end": 2224, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2205, "end": 2215, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 16 } }, "object": { "type": "Identifier", "start": 2205, "end": 2210, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2211, "end": 2215, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2216, "end": 2224, "loc": { "start": { "line": 69, "column": 17 }, "end": { "line": 69, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2225, "end": 2234, "loc": { "start": { "line": 69, "column": 26 }, "end": { "line": 69, "column": 35 } }, "extra": { "rawValue": "Control", "raw": "\"Control\"" }, "value": "Control" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2246, "end": 2272, "loc": { "start": { "line": 70, "column": 6 }, "end": { "line": 70, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 2246, "end": 2265, "loc": { "start": { "line": 70, "column": 6 }, "end": { "line": 70, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2246, "end": 2256, "loc": { "start": { "line": 70, "column": 6 }, "end": { "line": 70, "column": 16 } }, "object": { "type": "Identifier", "start": 2246, "end": 2251, "loc": { "start": { "line": 70, "column": 6 }, "end": { "line": 70, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2252, "end": 2256, "loc": { "start": { "line": 70, "column": 12 }, "end": { "line": 70, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2257, "end": 2265, "loc": { "start": { "line": 70, "column": 17 }, "end": { "line": 70, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2266, "end": 2271, "loc": { "start": { "line": 70, "column": 26 }, "end": { "line": 70, "column": 31 } }, "extra": { "rawValue": "Alt", "raw": "\"Alt\"" }, "value": "Alt" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2283, "end": 2310, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 2283, "end": 2302, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2283, "end": 2293, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 16 } }, "object": { "type": "Identifier", "start": 2283, "end": 2288, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2289, "end": 2293, "loc": { "start": { "line": 71, "column": 12 }, "end": { "line": 71, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2294, "end": 2302, "loc": { "start": { "line": 71, "column": 17 }, "end": { "line": 71, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2303, "end": 2309, "loc": { "start": { "line": 71, "column": 26 }, "end": { "line": 71, "column": 32 } }, "extra": { "rawValue": "Meta", "raw": "\"Meta\"" }, "value": "Meta" } ] } }, "consequent": { "type": "BlockStatement", "start": 2317, "end": 2353, "loc": { "start": { "line": 72, "column": 5 }, "end": { "line": 74, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2326, "end": 2346, "loc": { "start": { "line": 73, "column": 6 }, "end": { "line": 73, "column": 26 } }, "expression": { "type": "AssignmentExpression", "start": 2326, "end": 2345, "loc": { "start": { "line": 73, "column": 6 }, "end": { "line": 73, "column": 25 } }, "operator": "=", "left": { "type": "Identifier", "start": 2326, "end": 2332, "loc": { "start": { "line": 73, "column": 6 }, "end": { "line": 73, "column": 12 }, "identifierName": "output" }, "name": "output" }, "right": { "type": "MemberExpression", "start": 2335, "end": 2345, "loc": { "start": { "line": 73, "column": 15 }, "end": { "line": 73, "column": 25 } }, "object": { "type": "Identifier", "start": 2335, "end": 2340, "loc": { "start": { "line": 73, "column": 15 }, "end": { "line": 73, "column": 20 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2341, "end": 2345, "loc": { "start": { "line": 73, "column": 21 }, "end": { "line": 73, "column": 25 }, "identifierName": "code" }, "name": "code" }, "computed": false } } } ], "directives": [] }, "alternate": { "type": "BlockStatement", "start": 2359, "end": 2394, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 76, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2368, "end": 2387, "loc": { "start": { "line": 75, "column": 6 }, "end": { "line": 75, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 2368, "end": 2386, "loc": { "start": { "line": 75, "column": 6 }, "end": { "line": 75, "column": 24 } }, "operator": "=", "left": { "type": "Identifier", "start": 2368, "end": 2374, "loc": { "start": { "line": 75, "column": 6 }, "end": { "line": 75, "column": 12 }, "identifierName": "output" }, "name": "output" }, "right": { "type": "MemberExpression", "start": 2377, "end": 2386, "loc": { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 24 } }, "object": { "type": "Identifier", "start": 2377, "end": 2382, "loc": { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 20 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2383, "end": 2386, "loc": { "start": { "line": 75, "column": 21 }, "end": { "line": 75, "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": 2402, "end": 2471, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 80, "column": 7 } } } ] }, { "type": "IfStatement", "start": 2477, "end": 2677, "loc": { "start": { "line": 81, "column": 4 }, "end": { "line": 86, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 2489, "end": 2623, "loc": { "start": { "line": 82, "column": 6 }, "end": { "line": 83, "column": 98 } }, "left": { "type": "BinaryExpression", "start": 2489, "end": 2520, "loc": { "start": { "line": 82, "column": 6 }, "end": { "line": 82, "column": 37 } }, "left": { "type": "Identifier", "start": 2489, "end": 2495, "loc": { "start": { "line": 82, "column": 6 }, "end": { "line": 82, "column": 12 }, "identifierName": "output" }, "name": "output", "leadingComments": null }, "operator": "!==", "right": { "type": "CallExpression", "start": 2500, "end": 2520, "loc": { "start": { "line": 82, "column": 17 }, "end": { "line": 82, "column": 37 } }, "callee": { "type": "MemberExpression", "start": 2500, "end": 2518, "loc": { "start": { "line": 82, "column": 17 }, "end": { "line": 82, "column": 35 } }, "object": { "type": "Identifier", "start": 2500, "end": 2506, "loc": { "start": { "line": 82, "column": 17 }, "end": { "line": 82, "column": 23 }, "identifierName": "output" }, "name": "output" }, "property": { "type": "Identifier", "start": 2507, "end": 2518, "loc": { "start": { "line": 82, "column": 24 }, "end": { "line": 82, "column": 35 }, "identifierName": "toUpperCase" }, "name": "toUpperCase" }, "computed": false }, "arguments": [] }, "leadingComments": null }, "operator": "||", "right": { "type": "LogicalExpression", "start": 2532, "end": 2622, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 97 } }, "left": { "type": "LogicalExpression", "start": 2532, "end": 2596, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 71 } }, "left": { "type": "BinaryExpression", "start": 2532, "end": 2553, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 28 } }, "left": { "type": "MemberExpression", "start": 2532, "end": 2545, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 20 } }, "object": { "type": "MemberExpression", "start": 2532, "end": 2542, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 17 } }, "object": { "type": "Identifier", "start": 2532, "end": 2537, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 12 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2538, "end": 2542, "loc": { "start": { "line": 83, "column": 13 }, "end": { "line": 83, "column": 17 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "NumericLiteral", "start": 2543, "end": 2544, "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 19 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true }, "operator": "===", "right": { "type": "StringLiteral", "start": 2550, "end": 2553, "loc": { "start": { "line": 83, "column": 25 }, "end": { "line": 83, "column": 28 } }, "extra": { "rawValue": "F", "raw": "\"F\"" }, "value": "F" } }, "operator": "&&", "right": { "type": "CallExpression", "start": 2557, "end": 2596, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 71 } }, "callee": { "type": "MemberExpression", "start": 2557, "end": 2573, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 48 } }, "object": { "type": "Identifier", "start": 2557, "end": 2563, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 38 }, "identifierName": "Number" }, "name": "Number" }, "property": { "type": "Identifier", "start": 2564, "end": 2573, "loc": { "start": { "line": 83, "column": 39 }, "end": { "line": 83, "column": 48 }, "identifierName": "isInteger" }, "name": "isInteger" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 2574, "end": 2595, "loc": { "start": { "line": 83, "column": 49 }, "end": { "line": 83, "column": 70 } }, "callee": { "type": "Identifier", "start": 2574, "end": 2580, "loc": { "start": { "line": 83, "column": 49 }, "end": { "line": 83, "column": 55 }, "identifierName": "Number" }, "name": "Number" }, "arguments": [ { "type": "MemberExpression", "start": 2581, "end": 2594, "loc": { "start": { "line": 83, "column": 56 }, "end": { "line": 83, "column": 69 } }, "object": { "type": "MemberExpression", "start": 2581, "end": 2591, "loc": { "start": { "line": 83, "column": 56 }, "end": { "line": 83, "column": 66 } }, "object": { "type": "Identifier", "start": 2581, "end": 2586, "loc": { "start": { "line": 83, "column": 56 }, "end": { "line": 83, "column": 61 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2587, "end": 2591, "loc": { "start": { "line": 83, "column": 62 }, "end": { "line": 83, "column": 66 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "NumericLiteral", "start": 2592, "end": 2593, "loc": { "start": { "line": 83, "column": 67 }, "end": { "line": 83, "column": 68 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "computed": true } ] } ] } }, "operator": "&&", "right": { "type": "BinaryExpression", "start": 2600, "end": 2622, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 97 } }, "left": { "type": "MemberExpression", "start": 2600, "end": 2617, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 92 } }, "object": { "type": "MemberExpression", "start": 2600, "end": 2610, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 85 } }, "object": { "type": "Identifier", "start": 2600, "end": 2605, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 80 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2606, "end": 2610, "loc": { "start": { "line": 83, "column": 81 }, "end": { "line": 83, "column": 85 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2611, "end": 2617, "loc": { "start": { "line": 83, "column": 86 }, "end": { "line": 83, "column": 92 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "<=", "right": { "type": "NumericLiteral", "start": 2621, "end": 2622, "loc": { "start": { "line": 83, "column": 96 }, "end": { "line": 83, "column": 97 } }, "extra": { "rawValue": 3, "raw": "3" }, "value": 3 } }, "extra": { "parenthesized": true, "parenStart": 2531 } }, "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 2631, "end": 2677, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 86, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2640, "end": 2670, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 2640, "end": 2669, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 35 } }, "operator": "=", "left": { "type": "Identifier", "start": 2640, "end": 2646, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 12 }, "identifierName": "output" }, "name": "output" }, "right": { "type": "CallExpression", "start": 2649, "end": 2669, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 35 } }, "callee": { "type": "MemberExpression", "start": 2649, "end": 2667, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 33 } }, "object": { "type": "Identifier", "start": 2649, "end": 2655, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 21 }, "identifierName": "output" }, "name": "output" }, "property": { "type": "Identifier", "start": 2656, "end": 2667, "loc": { "start": { "line": 85, "column": 22 }, "end": { "line": 85, "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": 2402, "end": 2471, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 80, "column": 7 } } } ] }, { "type": "ReturnStatement", "start": 2685, "end": 2699, "loc": { "start": { "line": 88, "column": 4 }, "end": { "line": 88, "column": 18 } }, "argument": { "type": "Identifier", "start": 2692, "end": 2698, "loc": { "start": { "line": 88, "column": 11 }, "end": { "line": 88, "column": 17 }, "identifierName": "output" }, "name": "output" } } ], "directives": [] } }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", "start": 1724, "end": 1871, "loc": { "start": { "line": 53, "column": 2 }, "end": { "line": 56, "column": 5 } } } ] } ] }, "leadingComments": [], "name": "_", "trailingComments": [] }, { "type": "Identifier", "start": 2711, "end": 2743, "loc": { "start": { "line": 92, "column": 0 }, "end": { "line": 92, "column": 32 } }, "declaration": { "type": "Identifier", "start": 2726, "end": 2742, "loc": { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 31 }, "identifierName": "PhysicalKeyboard" }, "name": "PhysicalKeyboard" }, "name": "_", "leadingComments": [], "trailingComments": [] }, { "type": "ExportDefaultDeclaration", "start": 2711, "end": 2743, "loc": { "start": { "line": 92, "column": 0 }, "end": { "line": 92, "column": 32 } }, "declaration": { "type": "ClassDeclaration", "start": 40, "end": 2707, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 90, "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": 2707, "loc": { "start": { "line": 4, "column": 23 }, "end": { "line": 90, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 140, "end": 344, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 15, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 140, "end": 151, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 13 }, "identifierName": "constructor" }, "name": "constructor", "leadingComments": null }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 152, "end": 174, "loc": { "start": { "line": 8, "column": 14 }, "end": { "line": 8, "column": 36 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" } ], "body": { "type": "BlockStatement", "start": 175, "end": 344, "loc": { "start": { "line": 8, "column": 37 }, "end": { "line": 15, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 250, "end": 303, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 57 } }, "expression": { "type": "AssignmentExpression", "start": 250, "end": 302, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 56 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 250, "end": 277, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 31 } }, "object": { "type": "ThisExpression", "start": 250, "end": 254, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 8 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 255, "end": 277, "loc": { "start": { "line": 12, "column": 9 }, "end": { "line": 12, "column": 31 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 280, "end": 302, "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 56 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", "start": 182, "end": 244, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 7 } } } ] }, { "type": "ExpressionStatement", "start": 311, "end": 339, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 32 } }, "expression": { "type": "CallExpression", "start": 311, "end": 338, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 31 } }, "callee": { "type": "MemberExpression", "start": 311, "end": 336, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 29 } }, "object": { "type": "ThisExpression", "start": 311, "end": 315, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 8 } } }, "property": { "type": "Identifier", "start": 316, "end": 336, "loc": { "start": { "line": 14, "column": 9 }, "end": { "line": 14, "column": 29 }, "identifierName": "initKeyboardListener" }, "name": "initKeyboardListener" }, "computed": false }, "arguments": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ", "start": 68, "end": 136, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 7, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Initializes key event listeners\r\n ", "start": 350, "end": 398, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 19, "column": 5 } } } ] }, { "type": "ClassProperty", "start": 402, "end": 1718, "loc": { "start": { "line": 20, "column": 2 }, "end": { "line": 51, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 402, "end": 422, "loc": { "start": { "line": 20, "column": 2 }, "end": { "line": 20, "column": 22 }, "identifierName": "initKeyboardListener" }, "name": "initKeyboardListener", "leadingComments": null }, "value": { "type": "ArrowFunctionExpression", "start": 425, "end": 1718, "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 51, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 431, "end": 1718, "loc": { "start": { "line": 20, "column": 31 }, "end": { "line": 51, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 477, "end": 1173, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 35, "column": 7 } }, "expression": { "type": "CallExpression", "start": 477, "end": 1172, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 35, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 477, "end": 502, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 29 } }, "object": { "type": "Identifier", "start": 477, "end": 485, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 12 }, "identifierName": "document" }, "name": "document", "leadingComments": null }, "property": { "type": "Identifier", "start": 486, "end": 502, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 29 }, "identifierName": "addEventListener" }, "name": "addEventListener" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "StringLiteral", "start": 503, "end": 512, "loc": { "start": { "line": 22, "column": 30 }, "end": { "line": 22, "column": 39 } }, "extra": { "rawValue": "keydown", "raw": "\"keydown\"" }, "value": "keydown" }, { "type": "ArrowFunctionExpression", "start": 514, "end": 1171, "loc": { "start": { "line": 22, "column": 41 }, "end": { "line": 35, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 515, "end": 520, "loc": { "start": { "line": 22, "column": 42 }, "end": { "line": 22, "column": 47 }, "identifierName": "event" }, "name": "event" } ], "body": { "type": "BlockStatement", "start": 525, "end": 1171, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 35, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 534, "end": 1164, "loc": { "start": { "line": 23, "column": 6 }, "end": { "line": 34, "column": 7 } }, "test": { "type": "MemberExpression", "start": 537, "end": 598, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 70 } }, "object": { "type": "MemberExpression", "start": 537, "end": 572, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 44 } }, "object": { "type": "MemberExpression", "start": 537, "end": 564, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 36 } }, "object": { "type": "ThisExpression", "start": 537, "end": 541, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 13 } } }, "property": { "type": "Identifier", "start": 542, "end": 564, "loc": { "start": { "line": 23, "column": 14 }, "end": { "line": 23, "column": 36 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 565, "end": 572, "loc": { "start": { "line": 23, "column": 37 }, "end": { "line": 23, "column": 44 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 573, "end": 598, "loc": { "start": { "line": 23, "column": 45 }, "end": { "line": 23, "column": 70 }, "identifierName": "physicalKeyboardHighlight" }, "name": "physicalKeyboardHighlight" }, "computed": false }, "consequent": { "type": "BlockStatement", "start": 599, "end": 1164, "loc": { "start": { "line": 23, "column": 71 }, "end": { "line": 34, "column": 7 } }, "body": [ { "type": "VariableDeclaration", "start": 610, "end": 669, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 67 } }, "declarations": [ { "type": "VariableDeclarator", "start": 614, "end": 668, "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 66 } }, "id": { "type": "Identifier", "start": 614, "end": 627, "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 25 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" }, "init": { "type": "CallExpression", "start": 630, "end": 668, "loc": { "start": { "line": 24, "column": 28 }, "end": { "line": 24, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 630, "end": 661, "loc": { "start": { "line": 24, "column": 28 }, "end": { "line": 24, "column": 59 } }, "object": { "type": "ThisExpression", "start": 630, "end": 634, "loc": { "start": { "line": 24, "column": 28 }, "end": { "line": 24, "column": 32 } } }, "property": { "type": "Identifier", "start": 635, "end": 661, "loc": { "start": { "line": 24, "column": 33 }, "end": { "line": 24, "column": 59 }, "identifierName": "getSimpleKeyboardLayoutKey" }, "name": "getSimpleKeyboardLayoutKey" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 662, "end": 667, "loc": { "start": { "line": 24, "column": 60 }, "end": { "line": 24, "column": 65 }, "identifierName": "event" }, "name": "event" } ] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 681, "end": 1155, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 33, "column": 11 } }, "expression": { "type": "CallExpression", "start": 681, "end": 1154, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 33, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 681, "end": 717, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 44 } }, "object": { "type": "MemberExpression", "start": 681, "end": 708, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 35 } }, "object": { "type": "ThisExpression", "start": 681, "end": 685, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 12 } } }, "property": { "type": "Identifier", "start": 686, "end": 708, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 35 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 709, "end": 717, "loc": { "start": { "line": 26, "column": 36 }, "end": { "line": 26, "column": 44 }, "identifierName": "dispatch" }, "name": "dispatch" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 718, "end": 1153, "loc": { "start": { "line": 26, "column": 45 }, "end": { "line": 33, "column": 9 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 718, "end": 726, "loc": { "start": { "line": 26, "column": 45 }, "end": { "line": 26, "column": 53 }, "identifierName": "instance" }, "name": "instance" } ], "body": { "type": "BlockStatement", "start": 730, "end": 1153, "loc": { "start": { "line": 26, "column": 57 }, "end": { "line": 33, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 743, "end": 851, "loc": { "start": { "line": 27, "column": 10 }, "end": { "line": 27, "column": 118 } }, "declarations": [ { "type": "VariableDeclarator", "start": 747, "end": 850, "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 117 } }, "id": { "type": "Identifier", "start": 747, "end": 756, "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 23 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "init": { "type": "LogicalExpression", "start": 759, "end": 850, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 117 } }, "left": { "type": "CallExpression", "start": 759, "end": 799, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 759, "end": 784, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 51 } }, "object": { "type": "Identifier", "start": 759, "end": 767, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 34 }, "identifierName": "instance" }, "name": "instance" }, "property": { "type": "Identifier", "start": 768, "end": 784, "loc": { "start": { "line": 27, "column": 35 }, "end": { "line": 27, "column": 51 }, "identifierName": "getButtonElement" }, "name": "getButtonElement" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 785, "end": 798, "loc": { "start": { "line": 27, "column": 52 }, "end": { "line": 27, "column": 65 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" } ] }, "operator": "||", "right": { "type": "CallExpression", "start": 803, "end": 850, "loc": { "start": { "line": 27, "column": 70 }, "end": { "line": 27, "column": 117 } }, "callee": { "type": "MemberExpression", "start": 803, "end": 828, "loc": { "start": { "line": 27, "column": 70 }, "end": { "line": 27, "column": 95 } }, "object": { "type": "Identifier", "start": 803, "end": 811, "loc": { "start": { "line": 27, "column": 70 }, "end": { "line": 27, "column": 78 }, "identifierName": "instance" }, "name": "instance" }, "property": { "type": "Identifier", "start": 812, "end": 828, "loc": { "start": { "line": 27, "column": 79 }, "end": { "line": 27, "column": 95 }, "identifierName": "getButtonElement" }, "name": "getButtonElement" }, "computed": false }, "arguments": [ { "type": "TemplateLiteral", "start": 829, "end": 849, "loc": { "start": { "line": 27, "column": 96 }, "end": { "line": 27, "column": 116 } }, "expressions": [ { "type": "Identifier", "start": 833, "end": 846, "loc": { "start": { "line": 27, "column": 100 }, "end": { "line": 27, "column": 113 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" } ], "quasis": [ { "type": "TemplateElement", "start": 830, "end": 831, "loc": { "start": { "line": 27, "column": 97 }, "end": { "line": 27, "column": 98 } }, "value": { "raw": "{", "cooked": "{" }, "tail": false }, { "type": "TemplateElement", "start": 847, "end": 848, "loc": { "start": { "line": 27, "column": 114 }, "end": { "line": 27, "column": 115 } }, "value": { "raw": "}", "cooked": "}" }, "tail": true } ] } ] } } } ], "kind": "let" }, { "type": "IfStatement", "start": 865, "end": 1142, "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 32, "column": 11 } }, "test": { "type": "Identifier", "start": 868, "end": 877, "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 22 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "consequent": { "type": "BlockStatement", "start": 878, "end": 1142, "loc": { "start": { "line": 29, "column": 23 }, "end": { "line": 32, "column": 11 } }, "body": [ { "type": "ExpressionStatement", "start": 893, "end": 1009, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 128 } }, "expression": { "type": "AssignmentExpression", "start": 893, "end": 1008, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 127 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 893, "end": 924, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 43 } }, "object": { "type": "MemberExpression", "start": 893, "end": 908, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 27 } }, "object": { "type": "Identifier", "start": 893, "end": 902, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 21 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "property": { "type": "Identifier", "start": 903, "end": 908, "loc": { "start": { "line": 30, "column": 22 }, "end": { "line": 30, "column": 27 }, "identifierName": "style" }, "name": "style" }, "computed": false }, "property": { "type": "Identifier", "start": 909, "end": 924, "loc": { "start": { "line": 30, "column": 28 }, "end": { "line": 30, "column": 43 }, "identifierName": "backgroundColor" }, "name": "backgroundColor" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 927, "end": 1008, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 127 } }, "left": { "type": "MemberExpression", "start": 927, "end": 995, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 114 } }, "object": { "type": "MemberExpression", "start": 927, "end": 962, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 81 } }, "object": { "type": "MemberExpression", "start": 927, "end": 954, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 73 } }, "object": { "type": "ThisExpression", "start": 927, "end": 931, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 50 } } }, "property": { "type": "Identifier", "start": 932, "end": 954, "loc": { "start": { "line": 30, "column": 51 }, "end": { "line": 30, "column": 73 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 955, "end": 962, "loc": { "start": { "line": 30, "column": 74 }, "end": { "line": 30, "column": 81 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 963, "end": 995, "loc": { "start": { "line": 30, "column": 82 }, "end": { "line": 30, "column": 114 }, "identifierName": "physicalKeyboardHighlightBgColor" }, "name": "physicalKeyboardHighlightBgColor" }, "computed": false }, "operator": "||", "right": { "type": "StringLiteral", "start": 999, "end": 1008, "loc": { "start": { "line": 30, "column": 118 }, "end": { "line": 30, "column": 127 } }, "extra": { "rawValue": "#9ab4d0", "raw": "\"#9ab4d0\"" }, "value": "#9ab4d0" } } } }, { "type": "ExpressionStatement", "start": 1023, "end": 1129, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 118 } }, "expression": { "type": "AssignmentExpression", "start": 1023, "end": 1128, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 117 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1023, "end": 1044, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 33 } }, "object": { "type": "MemberExpression", "start": 1023, "end": 1038, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 27 } }, "object": { "type": "Identifier", "start": 1023, "end": 1032, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 21 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "property": { "type": "Identifier", "start": 1033, "end": 1038, "loc": { "start": { "line": 31, "column": 22 }, "end": { "line": 31, "column": 27 }, "identifierName": "style" }, "name": "style" }, "computed": false }, "property": { "type": "Identifier", "start": 1039, "end": 1044, "loc": { "start": { "line": 31, "column": 28 }, "end": { "line": 31, "column": 33 }, "identifierName": "color" }, "name": "color" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 1047, "end": 1128, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 117 } }, "left": { "type": "MemberExpression", "start": 1047, "end": 1117, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 106 } }, "object": { "type": "MemberExpression", "start": 1047, "end": 1082, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 71 } }, "object": { "type": "MemberExpression", "start": 1047, "end": 1074, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 63 } }, "object": { "type": "ThisExpression", "start": 1047, "end": 1051, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 40 } } }, "property": { "type": "Identifier", "start": 1052, "end": 1074, "loc": { "start": { "line": 31, "column": 41 }, "end": { "line": 31, "column": 63 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 1075, "end": 1082, "loc": { "start": { "line": 31, "column": 64 }, "end": { "line": 31, "column": 71 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 1083, "end": 1117, "loc": { "start": { "line": 31, "column": 72 }, "end": { "line": 31, "column": 106 }, "identifierName": "physicalKeyboardHighlightTextColor" }, "name": "physicalKeyboardHighlightTextColor" }, "computed": false }, "operator": "||", "right": { "type": "StringLiteral", "start": 1121, "end": 1128, "loc": { "start": { "line": 31, "column": 110 }, "end": { "line": 31, "column": 117 } }, "extra": { "rawValue": "white", "raw": "\"white\"" }, "value": "white" } } } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ] } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Adding button style on keydown", "start": 438, "end": 471, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 37 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Removing button style on keyup", "start": 1181, "end": 1214, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 37 } } } ] }, { "type": "ExpressionStatement", "start": 1220, "end": 1713, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 50, "column": 7 } }, "expression": { "type": "CallExpression", "start": 1220, "end": 1712, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 50, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 1220, "end": 1245, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 29 } }, "object": { "type": "Identifier", "start": 1220, "end": 1228, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 12 }, "identifierName": "document" }, "name": "document", "leadingComments": null }, "property": { "type": "Identifier", "start": 1229, "end": 1245, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 29 }, "identifierName": "addEventListener" }, "name": "addEventListener" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "StringLiteral", "start": 1246, "end": 1253, "loc": { "start": { "line": 38, "column": 30 }, "end": { "line": 38, "column": 37 } }, "extra": { "rawValue": "keyup", "raw": "\"keyup\"" }, "value": "keyup" }, { "type": "ArrowFunctionExpression", "start": 1255, "end": 1711, "loc": { "start": { "line": 38, "column": 39 }, "end": { "line": 50, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1256, "end": 1261, "loc": { "start": { "line": 38, "column": 40 }, "end": { "line": 38, "column": 45 }, "identifierName": "event" }, "name": "event" } ], "body": { "type": "BlockStatement", "start": 1266, "end": 1711, "loc": { "start": { "line": 38, "column": 50 }, "end": { "line": 50, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 1275, "end": 1704, "loc": { "start": { "line": 39, "column": 6 }, "end": { "line": 49, "column": 7 } }, "test": { "type": "MemberExpression", "start": 1278, "end": 1339, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 70 } }, "object": { "type": "MemberExpression", "start": 1278, "end": 1313, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 44 } }, "object": { "type": "MemberExpression", "start": 1278, "end": 1305, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 36 } }, "object": { "type": "ThisExpression", "start": 1278, "end": 1282, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 13 } } }, "property": { "type": "Identifier", "start": 1283, "end": 1305, "loc": { "start": { "line": 39, "column": 14 }, "end": { "line": 39, "column": 36 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 1306, "end": 1313, "loc": { "start": { "line": 39, "column": 37 }, "end": { "line": 39, "column": 44 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 1314, "end": 1339, "loc": { "start": { "line": 39, "column": 45 }, "end": { "line": 39, "column": 70 }, "identifierName": "physicalKeyboardHighlight" }, "name": "physicalKeyboardHighlight" }, "computed": false }, "consequent": { "type": "BlockStatement", "start": 1340, "end": 1704, "loc": { "start": { "line": 39, "column": 71 }, "end": { "line": 49, "column": 7 } }, "body": [ { "type": "VariableDeclaration", "start": 1351, "end": 1410, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 67 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1355, "end": 1409, "loc": { "start": { "line": 40, "column": 12 }, "end": { "line": 40, "column": 66 } }, "id": { "type": "Identifier", "start": 1355, "end": 1368, "loc": { "start": { "line": 40, "column": 12 }, "end": { "line": 40, "column": 25 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" }, "init": { "type": "CallExpression", "start": 1371, "end": 1409, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 1371, "end": 1402, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 59 } }, "object": { "type": "ThisExpression", "start": 1371, "end": 1375, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 32 } } }, "property": { "type": "Identifier", "start": 1376, "end": 1402, "loc": { "start": { "line": 40, "column": 33 }, "end": { "line": 40, "column": 59 }, "identifierName": "getSimpleKeyboardLayoutKey" }, "name": "getSimpleKeyboardLayoutKey" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1403, "end": 1408, "loc": { "start": { "line": 40, "column": 60 }, "end": { "line": 40, "column": 65 }, "identifierName": "event" }, "name": "event" } ] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 1422, "end": 1695, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 48, "column": 11 } }, "expression": { "type": "CallExpression", "start": 1422, "end": 1694, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 48, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 1422, "end": 1458, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 44 } }, "object": { "type": "MemberExpression", "start": 1422, "end": 1449, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 35 } }, "object": { "type": "ThisExpression", "start": 1422, "end": 1426, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 12 } } }, "property": { "type": "Identifier", "start": 1427, "end": 1449, "loc": { "start": { "line": 42, "column": 13 }, "end": { "line": 42, "column": 35 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 1450, "end": 1458, "loc": { "start": { "line": 42, "column": 36 }, "end": { "line": 42, "column": 44 }, "identifierName": "dispatch" }, "name": "dispatch" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 1459, "end": 1693, "loc": { "start": { "line": 42, "column": 45 }, "end": { "line": 48, "column": 9 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1459, "end": 1467, "loc": { "start": { "line": 42, "column": 45 }, "end": { "line": 42, "column": 53 }, "identifierName": "instance" }, "name": "instance" } ], "body": { "type": "BlockStatement", "start": 1471, "end": 1693, "loc": { "start": { "line": 42, "column": 57 }, "end": { "line": 48, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 1484, "end": 1592, "loc": { "start": { "line": 43, "column": 10 }, "end": { "line": 43, "column": 118 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1488, "end": 1591, "loc": { "start": { "line": 43, "column": 14 }, "end": { "line": 43, "column": 117 } }, "id": { "type": "Identifier", "start": 1488, "end": 1497, "loc": { "start": { "line": 43, "column": 14 }, "end": { "line": 43, "column": 23 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "init": { "type": "LogicalExpression", "start": 1500, "end": 1591, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 117 } }, "left": { "type": "CallExpression", "start": 1500, "end": 1540, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 1500, "end": 1525, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 51 } }, "object": { "type": "Identifier", "start": 1500, "end": 1508, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 34 }, "identifierName": "instance" }, "name": "instance" }, "property": { "type": "Identifier", "start": 1509, "end": 1525, "loc": { "start": { "line": 43, "column": 35 }, "end": { "line": 43, "column": 51 }, "identifierName": "getButtonElement" }, "name": "getButtonElement" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1526, "end": 1539, "loc": { "start": { "line": 43, "column": 52 }, "end": { "line": 43, "column": 65 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" } ] }, "operator": "||", "right": { "type": "CallExpression", "start": 1544, "end": 1591, "loc": { "start": { "line": 43, "column": 70 }, "end": { "line": 43, "column": 117 } }, "callee": { "type": "MemberExpression", "start": 1544, "end": 1569, "loc": { "start": { "line": 43, "column": 70 }, "end": { "line": 43, "column": 95 } }, "object": { "type": "Identifier", "start": 1544, "end": 1552, "loc": { "start": { "line": 43, "column": 70 }, "end": { "line": 43, "column": 78 }, "identifierName": "instance" }, "name": "instance" }, "property": { "type": "Identifier", "start": 1553, "end": 1569, "loc": { "start": { "line": 43, "column": 79 }, "end": { "line": 43, "column": 95 }, "identifierName": "getButtonElement" }, "name": "getButtonElement" }, "computed": false }, "arguments": [ { "type": "TemplateLiteral", "start": 1570, "end": 1590, "loc": { "start": { "line": 43, "column": 96 }, "end": { "line": 43, "column": 116 } }, "expressions": [ { "type": "Identifier", "start": 1574, "end": 1587, "loc": { "start": { "line": 43, "column": 100 }, "end": { "line": 43, "column": 113 }, "identifierName": "buttonPressed" }, "name": "buttonPressed" } ], "quasis": [ { "type": "TemplateElement", "start": 1571, "end": 1572, "loc": { "start": { "line": 43, "column": 97 }, "end": { "line": 43, "column": 98 } }, "value": { "raw": "{", "cooked": "{" }, "tail": false }, { "type": "TemplateElement", "start": 1588, "end": 1589, "loc": { "start": { "line": 43, "column": 114 }, "end": { "line": 43, "column": 115 } }, "value": { "raw": "}", "cooked": "}" }, "tail": true } ] } ] } } } ], "kind": "let" }, { "type": "IfStatement", "start": 1606, "end": 1682, "loc": { "start": { "line": 45, "column": 10 }, "end": { "line": 47, "column": 11 } }, "test": { "type": "Identifier", "start": 1609, "end": 1618, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 22 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "consequent": { "type": "BlockStatement", "start": 1619, "end": 1682, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 47, "column": 11 } }, "body": [ { "type": "ExpressionStatement", "start": 1634, "end": 1669, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 47 } }, "expression": { "type": "CallExpression", "start": 1634, "end": 1668, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 46 } }, "callee": { "type": "MemberExpression", "start": 1634, "end": 1659, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 37 } }, "object": { "type": "Identifier", "start": 1634, "end": 1643, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 21 }, "identifierName": "buttonDOM" }, "name": "buttonDOM" }, "property": { "type": "Identifier", "start": 1644, "end": 1659, "loc": { "start": { "line": 46, "column": 22 }, "end": { "line": 46, "column": 37 }, "identifierName": "removeAttribute" }, "name": "removeAttribute" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 1660, "end": 1667, "loc": { "start": { "line": 46, "column": 38 }, "end": { "line": 46, "column": 45 } }, "extra": { "rawValue": "style", "raw": "\"style\"" }, "value": "style" } ] } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ] } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Removing button style on keyup", "start": 1181, "end": 1214, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 37 } } } ] } ], "directives": [], "trailingComments": null }, "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Initializes key event listeners\r\n ", "start": 350, "end": 398, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 19, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", "start": 1724, "end": 1871, "loc": { "start": { "line": 53, "column": 2 }, "end": { "line": 56, "column": 5 } } } ] }, { "type": "ClassProperty", "start": 1875, "end": 2704, "loc": { "start": { "line": 57, "column": 2 }, "end": { "line": 89, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1875, "end": 1901, "loc": { "start": { "line": 57, "column": 2 }, "end": { "line": 57, "column": 28 }, "identifierName": "getSimpleKeyboardLayoutKey" }, "name": "getSimpleKeyboardLayoutKey", "leadingComments": null }, "value": { "type": "ArrowFunctionExpression", "start": 1904, "end": 2704, "loc": { "start": { "line": 57, "column": 31 }, "end": { "line": 89, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1905, "end": 1910, "loc": { "start": { "line": 57, "column": 32 }, "end": { "line": 57, "column": 37 }, "identifierName": "event" }, "name": "event" } ], "body": { "type": "BlockStatement", "start": 1915, "end": 2704, "loc": { "start": { "line": 57, "column": 42 }, "end": { "line": 89, "column": 3 } }, "body": [ { "type": "IfStatement", "start": 1922, "end": 2002, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 60, "column": 5 } }, "test": { "type": "MemberExpression", "start": 1925, "end": 1966, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 48 } }, "object": { "type": "MemberExpression", "start": 1925, "end": 1960, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 42 } }, "object": { "type": "MemberExpression", "start": 1925, "end": 1952, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 34 } }, "object": { "type": "ThisExpression", "start": 1925, "end": 1929, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 11 } } }, "property": { "type": "Identifier", "start": 1930, "end": 1952, "loc": { "start": { "line": 58, "column": 12 }, "end": { "line": 58, "column": 34 }, "identifierName": "simpleKeyboardInstance" }, "name": "simpleKeyboardInstance" }, "computed": false }, "property": { "type": "Identifier", "start": 1953, "end": 1960, "loc": { "start": { "line": 58, "column": 35 }, "end": { "line": 58, "column": 42 }, "identifierName": "options" }, "name": "options" }, "computed": false }, "property": { "type": "Identifier", "start": 1961, "end": 1966, "loc": { "start": { "line": 58, "column": 43 }, "end": { "line": 58, "column": 48 }, "identifierName": "debug" }, "name": "debug" }, "computed": false }, "consequent": { "type": "BlockStatement", "start": 1967, "end": 2002, "loc": { "start": { "line": 58, "column": 49 }, "end": { "line": 60, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 1976, "end": 1995, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 25 } }, "expression": { "type": "CallExpression", "start": 1976, "end": 1994, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 24 } }, "callee": { "type": "MemberExpression", "start": 1976, "end": 1987, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 17 } }, "object": { "type": "Identifier", "start": 1976, "end": 1983, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 13 }, "identifierName": "console" }, "name": "console" }, "property": { "type": "Identifier", "start": 1984, "end": 1987, "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 17 }, "identifierName": "log" }, "name": "log" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1988, "end": 1993, "loc": { "start": { "line": 59, "column": 18 }, "end": { "line": 59, "column": 23 }, "identifierName": "event" }, "name": "event" } ] } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 2014, "end": 2025, "loc": { "start": { "line": 62, "column": 4 }, "end": { "line": 62, "column": 15 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2018, "end": 2024, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 14 } }, "id": { "type": "Identifier", "start": 2018, "end": 2024, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 14 }, "identifierName": "output" }, "name": "output" }, "init": null } ], "kind": "let" }, { "type": "IfStatement", "start": 2033, "end": 2394, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 76, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 2044, "end": 2310, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 71, "column": 33 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2272, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 70, "column": 32 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2235, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 69, "column": 36 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2194, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 68, "column": 38 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2151, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 67, "column": 34 } }, "left": { "type": "LogicalExpression", "start": 2044, "end": 2112, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 66, "column": 34 } }, "left": { "type": "CallExpression", "start": 2044, "end": 2073, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 35 } }, "callee": { "type": "MemberExpression", "start": 2044, "end": 2063, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2044, "end": 2054, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 16 } }, "object": { "type": "Identifier", "start": 2044, "end": 2049, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2050, "end": 2054, "loc": { "start": { "line": 65, "column": 12 }, "end": { "line": 65, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2055, "end": 2063, "loc": { "start": { "line": 65, "column": 17 }, "end": { "line": 65, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2064, "end": 2072, "loc": { "start": { "line": 65, "column": 26 }, "end": { "line": 65, "column": 34 } }, "extra": { "rawValue": "Numpad", "raw": "\"Numpad\"" }, "value": "Numpad" } ] }, "operator": "||", "right": { "type": "CallExpression", "start": 2084, "end": 2112, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 2084, "end": 2103, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2084, "end": 2094, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 16 } }, "object": { "type": "Identifier", "start": 2084, "end": 2089, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2090, "end": 2094, "loc": { "start": { "line": 66, "column": 12 }, "end": { "line": 66, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2095, "end": 2103, "loc": { "start": { "line": 66, "column": 17 }, "end": { "line": 66, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2104, "end": 2111, "loc": { "start": { "line": 66, "column": 26 }, "end": { "line": 66, "column": 33 } }, "extra": { "rawValue": "Shift", "raw": "\"Shift\"" }, "value": "Shift" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2123, "end": 2151, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 2123, "end": 2142, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2123, "end": 2133, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 16 } }, "object": { "type": "Identifier", "start": 2123, "end": 2128, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2129, "end": 2133, "loc": { "start": { "line": 67, "column": 12 }, "end": { "line": 67, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2134, "end": 2142, "loc": { "start": { "line": 67, "column": 17 }, "end": { "line": 67, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2143, "end": 2150, "loc": { "start": { "line": 67, "column": 26 }, "end": { "line": 67, "column": 33 } }, "extra": { "rawValue": "Space", "raw": "\"Space\"" }, "value": "Space" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2162, "end": 2194, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 38 } }, "callee": { "type": "MemberExpression", "start": 2162, "end": 2181, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2162, "end": 2172, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 16 } }, "object": { "type": "Identifier", "start": 2162, "end": 2167, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2168, "end": 2172, "loc": { "start": { "line": 68, "column": 12 }, "end": { "line": 68, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2173, "end": 2181, "loc": { "start": { "line": 68, "column": 17 }, "end": { "line": 68, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2182, "end": 2193, "loc": { "start": { "line": 68, "column": 26 }, "end": { "line": 68, "column": 37 } }, "extra": { "rawValue": "Backspace", "raw": "\"Backspace\"" }, "value": "Backspace" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2205, "end": 2235, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 36 } }, "callee": { "type": "MemberExpression", "start": 2205, "end": 2224, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2205, "end": 2215, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 16 } }, "object": { "type": "Identifier", "start": 2205, "end": 2210, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2211, "end": 2215, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2216, "end": 2224, "loc": { "start": { "line": 69, "column": 17 }, "end": { "line": 69, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2225, "end": 2234, "loc": { "start": { "line": 69, "column": 26 }, "end": { "line": 69, "column": 35 } }, "extra": { "rawValue": "Control", "raw": "\"Control\"" }, "value": "Control" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2246, "end": 2272, "loc": { "start": { "line": 70, "column": 6 }, "end": { "line": 70, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 2246, "end": 2265, "loc": { "start": { "line": 70, "column": 6 }, "end": { "line": 70, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2246, "end": 2256, "loc": { "start": { "line": 70, "column": 6 }, "end": { "line": 70, "column": 16 } }, "object": { "type": "Identifier", "start": 2246, "end": 2251, "loc": { "start": { "line": 70, "column": 6 }, "end": { "line": 70, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2252, "end": 2256, "loc": { "start": { "line": 70, "column": 12 }, "end": { "line": 70, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2257, "end": 2265, "loc": { "start": { "line": 70, "column": 17 }, "end": { "line": 70, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2266, "end": 2271, "loc": { "start": { "line": 70, "column": 26 }, "end": { "line": 70, "column": 31 } }, "extra": { "rawValue": "Alt", "raw": "\"Alt\"" }, "value": "Alt" } ] } }, "operator": "||", "right": { "type": "CallExpression", "start": 2283, "end": 2310, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 2283, "end": 2302, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2283, "end": 2293, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 16 } }, "object": { "type": "Identifier", "start": 2283, "end": 2288, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 11 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2289, "end": 2293, "loc": { "start": { "line": 71, "column": 12 }, "end": { "line": 71, "column": 16 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2294, "end": 2302, "loc": { "start": { "line": 71, "column": 17 }, "end": { "line": 71, "column": 25 }, "identifierName": "includes" }, "name": "includes" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 2303, "end": 2309, "loc": { "start": { "line": 71, "column": 26 }, "end": { "line": 71, "column": 32 } }, "extra": { "rawValue": "Meta", "raw": "\"Meta\"" }, "value": "Meta" } ] } }, "consequent": { "type": "BlockStatement", "start": 2317, "end": 2353, "loc": { "start": { "line": 72, "column": 5 }, "end": { "line": 74, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2326, "end": 2346, "loc": { "start": { "line": 73, "column": 6 }, "end": { "line": 73, "column": 26 } }, "expression": { "type": "AssignmentExpression", "start": 2326, "end": 2345, "loc": { "start": { "line": 73, "column": 6 }, "end": { "line": 73, "column": 25 } }, "operator": "=", "left": { "type": "Identifier", "start": 2326, "end": 2332, "loc": { "start": { "line": 73, "column": 6 }, "end": { "line": 73, "column": 12 }, "identifierName": "output" }, "name": "output" }, "right": { "type": "MemberExpression", "start": 2335, "end": 2345, "loc": { "start": { "line": 73, "column": 15 }, "end": { "line": 73, "column": 25 } }, "object": { "type": "Identifier", "start": 2335, "end": 2340, "loc": { "start": { "line": 73, "column": 15 }, "end": { "line": 73, "column": 20 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2341, "end": 2345, "loc": { "start": { "line": 73, "column": 21 }, "end": { "line": 73, "column": 25 }, "identifierName": "code" }, "name": "code" }, "computed": false } } } ], "directives": [] }, "alternate": { "type": "BlockStatement", "start": 2359, "end": 2394, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 76, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2368, "end": 2387, "loc": { "start": { "line": 75, "column": 6 }, "end": { "line": 75, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 2368, "end": 2386, "loc": { "start": { "line": 75, "column": 6 }, "end": { "line": 75, "column": 24 } }, "operator": "=", "left": { "type": "Identifier", "start": 2368, "end": 2374, "loc": { "start": { "line": 75, "column": 6 }, "end": { "line": 75, "column": 12 }, "identifierName": "output" }, "name": "output" }, "right": { "type": "MemberExpression", "start": 2377, "end": 2386, "loc": { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 24 } }, "object": { "type": "Identifier", "start": 2377, "end": 2382, "loc": { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 20 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2383, "end": 2386, "loc": { "start": { "line": 75, "column": 21 }, "end": { "line": 75, "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": 2402, "end": 2471, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 80, "column": 7 } } } ] }, { "type": "IfStatement", "start": 2477, "end": 2677, "loc": { "start": { "line": 81, "column": 4 }, "end": { "line": 86, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 2489, "end": 2623, "loc": { "start": { "line": 82, "column": 6 }, "end": { "line": 83, "column": 98 } }, "left": { "type": "BinaryExpression", "start": 2489, "end": 2520, "loc": { "start": { "line": 82, "column": 6 }, "end": { "line": 82, "column": 37 } }, "left": { "type": "Identifier", "start": 2489, "end": 2495, "loc": { "start": { "line": 82, "column": 6 }, "end": { "line": 82, "column": 12 }, "identifierName": "output" }, "name": "output", "leadingComments": null }, "operator": "!==", "right": { "type": "CallExpression", "start": 2500, "end": 2520, "loc": { "start": { "line": 82, "column": 17 }, "end": { "line": 82, "column": 37 } }, "callee": { "type": "MemberExpression", "start": 2500, "end": 2518, "loc": { "start": { "line": 82, "column": 17 }, "end": { "line": 82, "column": 35 } }, "object": { "type": "Identifier", "start": 2500, "end": 2506, "loc": { "start": { "line": 82, "column": 17 }, "end": { "line": 82, "column": 23 }, "identifierName": "output" }, "name": "output" }, "property": { "type": "Identifier", "start": 2507, "end": 2518, "loc": { "start": { "line": 82, "column": 24 }, "end": { "line": 82, "column": 35 }, "identifierName": "toUpperCase" }, "name": "toUpperCase" }, "computed": false }, "arguments": [] }, "leadingComments": null }, "operator": "||", "right": { "type": "LogicalExpression", "start": 2532, "end": 2622, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 97 } }, "left": { "type": "LogicalExpression", "start": 2532, "end": 2596, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 71 } }, "left": { "type": "BinaryExpression", "start": 2532, "end": 2553, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 28 } }, "left": { "type": "MemberExpression", "start": 2532, "end": 2545, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 20 } }, "object": { "type": "MemberExpression", "start": 2532, "end": 2542, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 17 } }, "object": { "type": "Identifier", "start": 2532, "end": 2537, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 12 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2538, "end": 2542, "loc": { "start": { "line": 83, "column": 13 }, "end": { "line": 83, "column": 17 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "NumericLiteral", "start": 2543, "end": 2544, "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 19 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true }, "operator": "===", "right": { "type": "StringLiteral", "start": 2550, "end": 2553, "loc": { "start": { "line": 83, "column": 25 }, "end": { "line": 83, "column": 28 } }, "extra": { "rawValue": "F", "raw": "\"F\"" }, "value": "F" } }, "operator": "&&", "right": { "type": "CallExpression", "start": 2557, "end": 2596, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 71 } }, "callee": { "type": "MemberExpression", "start": 2557, "end": 2573, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 48 } }, "object": { "type": "Identifier", "start": 2557, "end": 2563, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 38 }, "identifierName": "Number" }, "name": "Number" }, "property": { "type": "Identifier", "start": 2564, "end": 2573, "loc": { "start": { "line": 83, "column": 39 }, "end": { "line": 83, "column": 48 }, "identifierName": "isInteger" }, "name": "isInteger" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 2574, "end": 2595, "loc": { "start": { "line": 83, "column": 49 }, "end": { "line": 83, "column": 70 } }, "callee": { "type": "Identifier", "start": 2574, "end": 2580, "loc": { "start": { "line": 83, "column": 49 }, "end": { "line": 83, "column": 55 }, "identifierName": "Number" }, "name": "Number" }, "arguments": [ { "type": "MemberExpression", "start": 2581, "end": 2594, "loc": { "start": { "line": 83, "column": 56 }, "end": { "line": 83, "column": 69 } }, "object": { "type": "MemberExpression", "start": 2581, "end": 2591, "loc": { "start": { "line": 83, "column": 56 }, "end": { "line": 83, "column": 66 } }, "object": { "type": "Identifier", "start": 2581, "end": 2586, "loc": { "start": { "line": 83, "column": 56 }, "end": { "line": 83, "column": 61 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2587, "end": 2591, "loc": { "start": { "line": 83, "column": 62 }, "end": { "line": 83, "column": 66 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "NumericLiteral", "start": 2592, "end": 2593, "loc": { "start": { "line": 83, "column": 67 }, "end": { "line": 83, "column": 68 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "computed": true } ] } ] } }, "operator": "&&", "right": { "type": "BinaryExpression", "start": 2600, "end": 2622, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 97 } }, "left": { "type": "MemberExpression", "start": 2600, "end": 2617, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 92 } }, "object": { "type": "MemberExpression", "start": 2600, "end": 2610, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 85 } }, "object": { "type": "Identifier", "start": 2600, "end": 2605, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 80 }, "identifierName": "event" }, "name": "event" }, "property": { "type": "Identifier", "start": 2606, "end": 2610, "loc": { "start": { "line": 83, "column": 81 }, "end": { "line": 83, "column": 85 }, "identifierName": "code" }, "name": "code" }, "computed": false }, "property": { "type": "Identifier", "start": 2611, "end": 2617, "loc": { "start": { "line": 83, "column": 86 }, "end": { "line": 83, "column": 92 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "<=", "right": { "type": "NumericLiteral", "start": 2621, "end": 2622, "loc": { "start": { "line": 83, "column": 96 }, "end": { "line": 83, "column": 97 } }, "extra": { "rawValue": 3, "raw": "3" }, "value": 3 } }, "extra": { "parenthesized": true, "parenStart": 2531 } }, "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 2631, "end": 2677, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 86, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2640, "end": 2670, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 2640, "end": 2669, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 35 } }, "operator": "=", "left": { "type": "Identifier", "start": 2640, "end": 2646, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 12 }, "identifierName": "output" }, "name": "output" }, "right": { "type": "CallExpression", "start": 2649, "end": 2669, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 35 } }, "callee": { "type": "MemberExpression", "start": 2649, "end": 2667, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 33 } }, "object": { "type": "Identifier", "start": 2649, "end": 2655, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 21 }, "identifierName": "output" }, "name": "output" }, "property": { "type": "Identifier", "start": 2656, "end": 2667, "loc": { "start": { "line": 85, "column": 22 }, "end": { "line": 85, "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": 2402, "end": 2471, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 80, "column": 7 } } } ] }, { "type": "ReturnStatement", "start": 2685, "end": 2699, "loc": { "start": { "line": 88, "column": 4 }, "end": { "line": 88, "column": 18 } }, "argument": { "type": "Identifier", "start": 2692, "end": 2698, "loc": { "start": { "line": 88, "column": 11 }, "end": { "line": 88, "column": 17 }, "identifierName": "output" }, "name": "output" } } ], "directives": [] } }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", "start": 1724, "end": 1871, "loc": { "start": { "line": 53, "column": 2 }, "end": { "line": 56, "column": 5 } } } ] } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Physical Keyboard Service\r\n ", "start": 0, "end": 38, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 3 } } } ], "__PseudoExport__": false, "trailingComments": [] }, "leadingComments": null } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\r\n * Physical Keyboard Service\r\n ", "start": 0, "end": 38, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ", "start": 68, "end": 136, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 7, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", "start": 182, "end": 244, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Initializes key event listeners\r\n ", "start": 350, "end": 398, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 19, "column": 5 } } }, { "type": "CommentLine", "value": " Adding button style on keydown", "start": 438, "end": 471, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 37 } } }, { "type": "CommentLine", "value": " Removing button style on keyup", "start": 1181, "end": 1214, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 37 } } }, { "type": "CommentBlock", "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", "start": 1724, "end": 1871, "loc": { "start": { "line": 53, "column": 2 }, "end": { "line": 56, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ", "start": 2402, "end": 2471, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 80, "column": 7 } } } ], "tokens": [ { "type": "CommentBlock", "value": "*\r\n * Physical Keyboard Service\r\n ", "start": 0, "end": 38, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 3, "column": 3 } } }, { "type": { "label": "class", "keyword": "class", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "class", "start": 40, "end": 45, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "PhysicalKeyboard", "start": 46, "end": 62, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 63, "end": 64, "loc": { "start": { "line": 4, "column": 23 }, "end": { "line": 4, "column": 24 } } }, { "type": "CommentBlock", "value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ", "start": 68, "end": 136, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 7, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 140, "end": 151, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 151, "end": 152, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 152, "end": 174, "loc": { "start": { "line": 8, "column": 14 }, "end": { "line": 8, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 174, "end": 175, "loc": { "start": { "line": 8, "column": 36 }, "end": { "line": 8, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 175, "end": 176, "loc": { "start": { "line": 8, "column": 37 }, "end": { "line": 8, "column": 38 } } }, { "type": "CommentBlock", "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", "start": 182, "end": 244, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 7 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 250, "end": 254, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 254, "end": 255, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 255, "end": 277, "loc": { "start": { "line": 12, "column": 9 }, "end": { "line": 12, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 278, "end": 279, "loc": { "start": { "line": 12, "column": 32 }, "end": { "line": 12, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 280, "end": 302, "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 56 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 302, "end": 303, "loc": { "start": { "line": 12, "column": 56 }, "end": { "line": 12, "column": 57 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 311, "end": 315, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 315, "end": 316, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "initKeyboardListener", "start": 316, "end": 336, "loc": { "start": { "line": 14, "column": 9 }, "end": { "line": 14, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 336, "end": 337, "loc": { "start": { "line": 14, "column": 29 }, "end": { "line": 14, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 337, "end": 338, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 338, "end": 339, "loc": { "start": { "line": 14, "column": 31 }, "end": { "line": 14, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 343, "end": 344, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n * Initializes key event listeners\r\n ", "start": 350, "end": 398, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 19, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "initKeyboardListener", "start": 402, "end": 422, "loc": { "start": { "line": 20, "column": 2 }, "end": { "line": 20, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 423, "end": 424, "loc": { "start": { "line": 20, "column": 23 }, "end": { "line": 20, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 425, "end": 426, "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 20, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 426, "end": 427, "loc": { "start": { "line": 20, "column": 26 }, "end": { "line": 20, "column": 27 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 428, "end": 430, "loc": { "start": { "line": 20, "column": 28 }, "end": { "line": 20, "column": 30 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 431, "end": 432, "loc": { "start": { "line": 20, "column": 31 }, "end": { "line": 20, "column": 32 } } }, { "type": "CommentLine", "value": " Adding button style on keydown", "start": 438, "end": 471, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "document", "start": 477, "end": 485, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 485, "end": 486, "loc": { "start": { "line": 22, "column": 12 }, "end": { "line": 22, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "addEventListener", "start": 486, "end": 502, "loc": { "start": { "line": 22, "column": 13 }, "end": { "line": 22, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 502, "end": 503, "loc": { "start": { "line": 22, "column": 29 }, "end": { "line": 22, "column": 30 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "keydown", "start": 503, "end": 512, "loc": { "start": { "line": 22, "column": 30 }, "end": { "line": 22, "column": 39 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 512, "end": 513, "loc": { "start": { "line": 22, "column": 39 }, "end": { "line": 22, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 514, "end": 515, "loc": { "start": { "line": 22, "column": 41 }, "end": { "line": 22, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 515, "end": 520, "loc": { "start": { "line": 22, "column": 42 }, "end": { "line": 22, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 520, "end": 521, "loc": { "start": { "line": 22, "column": 47 }, "end": { "line": 22, "column": 48 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 522, "end": 524, "loc": { "start": { "line": 22, "column": 49 }, "end": { "line": 22, "column": 51 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 525, "end": 526, "loc": { "start": { "line": 22, "column": 52 }, "end": { "line": 22, "column": 53 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 534, "end": 536, "loc": { "start": { "line": 23, "column": 6 }, "end": { "line": 23, "column": 8 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 536, "end": 537, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 9 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 537, "end": 541, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 541, "end": 542, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 542, "end": 564, "loc": { "start": { "line": 23, "column": 14 }, "end": { "line": 23, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 564, "end": 565, "loc": { "start": { "line": 23, "column": 36 }, "end": { "line": 23, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "options", "start": 565, "end": 572, "loc": { "start": { "line": 23, "column": 37 }, "end": { "line": 23, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 572, "end": 573, "loc": { "start": { "line": 23, "column": 44 }, "end": { "line": 23, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "physicalKeyboardHighlight", "start": 573, "end": 598, "loc": { "start": { "line": 23, "column": 45 }, "end": { "line": 23, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 598, "end": 599, "loc": { "start": { "line": 23, "column": 70 }, "end": { "line": 23, "column": 71 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 599, "end": 600, "loc": { "start": { "line": 23, "column": 71 }, "end": { "line": 23, "column": 72 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 610, "end": 613, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonPressed", "start": 614, "end": 627, "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 628, "end": 629, "loc": { "start": { "line": 24, "column": 26 }, "end": { "line": 24, "column": 27 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 630, "end": 634, "loc": { "start": { "line": 24, "column": 28 }, "end": { "line": 24, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 634, "end": 635, "loc": { "start": { "line": 24, "column": 32 }, "end": { "line": 24, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getSimpleKeyboardLayoutKey", "start": 635, "end": 661, "loc": { "start": { "line": 24, "column": 33 }, "end": { "line": 24, "column": 59 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 661, "end": 662, "loc": { "start": { "line": 24, "column": 59 }, "end": { "line": 24, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 662, "end": 667, "loc": { "start": { "line": 24, "column": 60 }, "end": { "line": 24, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 667, "end": 668, "loc": { "start": { "line": 24, "column": 65 }, "end": { "line": 24, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 668, "end": 669, "loc": { "start": { "line": 24, "column": 66 }, "end": { "line": 24, "column": 67 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 681, "end": 685, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 685, "end": 686, "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 686, "end": 708, "loc": { "start": { "line": 26, "column": 13 }, "end": { "line": 26, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 708, "end": 709, "loc": { "start": { "line": 26, "column": 35 }, "end": { "line": 26, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dispatch", "start": 709, "end": 717, "loc": { "start": { "line": 26, "column": 36 }, "end": { "line": 26, "column": 44 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 717, "end": 718, "loc": { "start": { "line": 26, "column": 44 }, "end": { "line": 26, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 718, "end": 726, "loc": { "start": { "line": 26, "column": 45 }, "end": { "line": 26, "column": 53 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 727, "end": 729, "loc": { "start": { "line": 26, "column": 54 }, "end": { "line": 26, "column": 56 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 730, "end": 731, "loc": { "start": { "line": 26, "column": 57 }, "end": { "line": 26, "column": 58 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 743, "end": 746, "loc": { "start": { "line": 27, "column": 10 }, "end": { "line": 27, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonDOM", "start": 747, "end": 756, "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 757, "end": 758, "loc": { "start": { "line": 27, "column": 24 }, "end": { "line": 27, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 759, "end": 767, "loc": { "start": { "line": 27, "column": 26 }, "end": { "line": 27, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 767, "end": 768, "loc": { "start": { "line": 27, "column": 34 }, "end": { "line": 27, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getButtonElement", "start": 768, "end": 784, "loc": { "start": { "line": 27, "column": 35 }, "end": { "line": 27, "column": 51 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 784, "end": 785, "loc": { "start": { "line": 27, "column": 51 }, "end": { "line": 27, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonPressed", "start": 785, "end": 798, "loc": { "start": { "line": 27, "column": 52 }, "end": { "line": 27, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 798, "end": 799, "loc": { "start": { "line": 27, "column": 65 }, "end": { "line": 27, "column": 66 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 800, "end": 802, "loc": { "start": { "line": 27, "column": 67 }, "end": { "line": 27, "column": 69 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 803, "end": 811, "loc": { "start": { "line": 27, "column": 70 }, "end": { "line": 27, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 811, "end": 812, "loc": { "start": { "line": 27, "column": 78 }, "end": { "line": 27, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getButtonElement", "start": 812, "end": 828, "loc": { "start": { "line": 27, "column": 79 }, "end": { "line": 27, "column": 95 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 828, "end": 829, "loc": { "start": { "line": 27, "column": 95 }, "end": { "line": 27, "column": 96 } } }, { "type": { "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 829, "end": 830, "loc": { "start": { "line": 27, "column": 96 }, "end": { "line": 27, "column": 97 } } }, { "type": { "label": "template", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "{", "start": 830, "end": 831, "loc": { "start": { "line": 27, "column": 97 }, "end": { "line": 27, "column": 98 } } }, { "type": { "label": "${", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 831, "end": 833, "loc": { "start": { "line": 27, "column": 98 }, "end": { "line": 27, "column": 100 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonPressed", "start": 833, "end": 846, "loc": { "start": { "line": 27, "column": 100 }, "end": { "line": 27, "column": 113 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 846, "end": 847, "loc": { "start": { "line": 27, "column": 113 }, "end": { "line": 27, "column": 114 } } }, { "type": { "label": "template", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "}", "start": 847, "end": 848, "loc": { "start": { "line": 27, "column": 114 }, "end": { "line": 27, "column": 115 } } }, { "type": { "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 848, "end": 849, "loc": { "start": { "line": 27, "column": 115 }, "end": { "line": 27, "column": 116 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 849, "end": 850, "loc": { "start": { "line": 27, "column": 116 }, "end": { "line": 27, "column": 117 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 850, "end": 851, "loc": { "start": { "line": 27, "column": 117 }, "end": { "line": 27, "column": 118 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 865, "end": 867, "loc": { "start": { "line": 29, "column": 10 }, "end": { "line": 29, "column": 12 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 867, "end": 868, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonDOM", "start": 868, "end": 877, "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 22 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 877, "end": 878, "loc": { "start": { "line": 29, "column": 22 }, "end": { "line": 29, "column": 23 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 878, "end": 879, "loc": { "start": { "line": 29, "column": 23 }, "end": { "line": 29, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonDOM", "start": 893, "end": 902, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 902, "end": 903, "loc": { "start": { "line": 30, "column": 21 }, "end": { "line": 30, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "style", "start": 903, "end": 908, "loc": { "start": { "line": 30, "column": 22 }, "end": { "line": 30, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 908, "end": 909, "loc": { "start": { "line": 30, "column": 27 }, "end": { "line": 30, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "backgroundColor", "start": 909, "end": 924, "loc": { "start": { "line": 30, "column": 28 }, "end": { "line": 30, "column": 43 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 925, "end": 926, "loc": { "start": { "line": 30, "column": 44 }, "end": { "line": 30, "column": 45 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 927, "end": 931, "loc": { "start": { "line": 30, "column": 46 }, "end": { "line": 30, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 931, "end": 932, "loc": { "start": { "line": 30, "column": 50 }, "end": { "line": 30, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 932, "end": 954, "loc": { "start": { "line": 30, "column": 51 }, "end": { "line": 30, "column": 73 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 954, "end": 955, "loc": { "start": { "line": 30, "column": 73 }, "end": { "line": 30, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "options", "start": 955, "end": 962, "loc": { "start": { "line": 30, "column": 74 }, "end": { "line": 30, "column": 81 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 962, "end": 963, "loc": { "start": { "line": 30, "column": 81 }, "end": { "line": 30, "column": 82 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "physicalKeyboardHighlightBgColor", "start": 963, "end": 995, "loc": { "start": { "line": 30, "column": 82 }, "end": { "line": 30, "column": 114 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 996, "end": 998, "loc": { "start": { "line": 30, "column": 115 }, "end": { "line": 30, "column": 117 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "#9ab4d0", "start": 999, "end": 1008, "loc": { "start": { "line": 30, "column": 118 }, "end": { "line": 30, "column": 127 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1008, "end": 1009, "loc": { "start": { "line": 30, "column": 127 }, "end": { "line": 30, "column": 128 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonDOM", "start": 1023, "end": 1032, "loc": { "start": { "line": 31, "column": 12 }, "end": { "line": 31, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1032, "end": 1033, "loc": { "start": { "line": 31, "column": 21 }, "end": { "line": 31, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "style", "start": 1033, "end": 1038, "loc": { "start": { "line": 31, "column": 22 }, "end": { "line": 31, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1038, "end": 1039, "loc": { "start": { "line": 31, "column": 27 }, "end": { "line": 31, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 1039, "end": 1044, "loc": { "start": { "line": 31, "column": 28 }, "end": { "line": 31, "column": 33 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1045, "end": 1046, "loc": { "start": { "line": 31, "column": 34 }, "end": { "line": 31, "column": 35 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1047, "end": 1051, "loc": { "start": { "line": 31, "column": 36 }, "end": { "line": 31, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1051, "end": 1052, "loc": { "start": { "line": 31, "column": 40 }, "end": { "line": 31, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 1052, "end": 1074, "loc": { "start": { "line": 31, "column": 41 }, "end": { "line": 31, "column": 63 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1074, "end": 1075, "loc": { "start": { "line": 31, "column": 63 }, "end": { "line": 31, "column": 64 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "options", "start": 1075, "end": 1082, "loc": { "start": { "line": 31, "column": 64 }, "end": { "line": 31, "column": 71 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1082, "end": 1083, "loc": { "start": { "line": 31, "column": 71 }, "end": { "line": 31, "column": 72 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "physicalKeyboardHighlightTextColor", "start": 1083, "end": 1117, "loc": { "start": { "line": 31, "column": 72 }, "end": { "line": 31, "column": 106 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 1118, "end": 1120, "loc": { "start": { "line": 31, "column": 107 }, "end": { "line": 31, "column": 109 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "white", "start": 1121, "end": 1128, "loc": { "start": { "line": 31, "column": 110 }, "end": { "line": 31, "column": 117 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1128, "end": 1129, "loc": { "start": { "line": 31, "column": 117 }, "end": { "line": 31, "column": 118 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1141, "end": 1142, "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 32, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1152, "end": 1153, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1153, "end": 1154, "loc": { "start": { "line": 33, "column": 9 }, "end": { "line": 33, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1154, "end": 1155, "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1163, "end": 1164, "loc": { "start": { "line": 34, "column": 6 }, "end": { "line": 34, "column": 7 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1170, "end": 1171, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 5 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1171, "end": 1172, "loc": { "start": { "line": 35, "column": 5 }, "end": { "line": 35, "column": 6 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1172, "end": 1173, "loc": { "start": { "line": 35, "column": 6 }, "end": { "line": 35, "column": 7 } } }, { "type": "CommentLine", "value": " Removing button style on keyup", "start": 1181, "end": 1214, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "document", "start": 1220, "end": 1228, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1228, "end": 1229, "loc": { "start": { "line": 38, "column": 12 }, "end": { "line": 38, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "addEventListener", "start": 1229, "end": 1245, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1245, "end": 1246, "loc": { "start": { "line": 38, "column": 29 }, "end": { "line": 38, "column": 30 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "keyup", "start": 1246, "end": 1253, "loc": { "start": { "line": 38, "column": 30 }, "end": { "line": 38, "column": 37 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1253, "end": 1254, "loc": { "start": { "line": 38, "column": 37 }, "end": { "line": 38, "column": 38 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1255, "end": 1256, "loc": { "start": { "line": 38, "column": 39 }, "end": { "line": 38, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 1256, "end": 1261, "loc": { "start": { "line": 38, "column": 40 }, "end": { "line": 38, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1261, "end": 1262, "loc": { "start": { "line": 38, "column": 45 }, "end": { "line": 38, "column": 46 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1263, "end": 1265, "loc": { "start": { "line": 38, "column": 47 }, "end": { "line": 38, "column": 49 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1266, "end": 1267, "loc": { "start": { "line": 38, "column": 50 }, "end": { "line": 38, "column": 51 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 1275, "end": 1277, "loc": { "start": { "line": 39, "column": 6 }, "end": { "line": 39, "column": 8 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1277, "end": 1278, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 9 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1278, "end": 1282, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1282, "end": 1283, "loc": { "start": { "line": 39, "column": 13 }, "end": { "line": 39, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 1283, "end": 1305, "loc": { "start": { "line": 39, "column": 14 }, "end": { "line": 39, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1305, "end": 1306, "loc": { "start": { "line": 39, "column": 36 }, "end": { "line": 39, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "options", "start": 1306, "end": 1313, "loc": { "start": { "line": 39, "column": 37 }, "end": { "line": 39, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1313, "end": 1314, "loc": { "start": { "line": 39, "column": 44 }, "end": { "line": 39, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "physicalKeyboardHighlight", "start": 1314, "end": 1339, "loc": { "start": { "line": 39, "column": 45 }, "end": { "line": 39, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1339, "end": 1340, "loc": { "start": { "line": 39, "column": 70 }, "end": { "line": 39, "column": 71 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1340, "end": 1341, "loc": { "start": { "line": 39, "column": 71 }, "end": { "line": 39, "column": 72 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 1351, "end": 1354, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonPressed", "start": 1355, "end": 1368, "loc": { "start": { "line": 40, "column": 12 }, "end": { "line": 40, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1369, "end": 1370, "loc": { "start": { "line": 40, "column": 26 }, "end": { "line": 40, "column": 27 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1371, "end": 1375, "loc": { "start": { "line": 40, "column": 28 }, "end": { "line": 40, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1375, "end": 1376, "loc": { "start": { "line": 40, "column": 32 }, "end": { "line": 40, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getSimpleKeyboardLayoutKey", "start": 1376, "end": 1402, "loc": { "start": { "line": 40, "column": 33 }, "end": { "line": 40, "column": 59 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1402, "end": 1403, "loc": { "start": { "line": 40, "column": 59 }, "end": { "line": 40, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 1403, "end": 1408, "loc": { "start": { "line": 40, "column": 60 }, "end": { "line": 40, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1408, "end": 1409, "loc": { "start": { "line": 40, "column": 65 }, "end": { "line": 40, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1409, "end": 1410, "loc": { "start": { "line": 40, "column": 66 }, "end": { "line": 40, "column": 67 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1422, "end": 1426, "loc": { "start": { "line": 42, "column": 8 }, "end": { "line": 42, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1426, "end": 1427, "loc": { "start": { "line": 42, "column": 12 }, "end": { "line": 42, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 1427, "end": 1449, "loc": { "start": { "line": 42, "column": 13 }, "end": { "line": 42, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1449, "end": 1450, "loc": { "start": { "line": 42, "column": 35 }, "end": { "line": 42, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dispatch", "start": 1450, "end": 1458, "loc": { "start": { "line": 42, "column": 36 }, "end": { "line": 42, "column": 44 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1458, "end": 1459, "loc": { "start": { "line": 42, "column": 44 }, "end": { "line": 42, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 1459, "end": 1467, "loc": { "start": { "line": 42, "column": 45 }, "end": { "line": 42, "column": 53 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1468, "end": 1470, "loc": { "start": { "line": 42, "column": 54 }, "end": { "line": 42, "column": 56 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1471, "end": 1472, "loc": { "start": { "line": 42, "column": 57 }, "end": { "line": 42, "column": 58 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 1484, "end": 1487, "loc": { "start": { "line": 43, "column": 10 }, "end": { "line": 43, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonDOM", "start": 1488, "end": 1497, "loc": { "start": { "line": 43, "column": 14 }, "end": { "line": 43, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1498, "end": 1499, "loc": { "start": { "line": 43, "column": 24 }, "end": { "line": 43, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 1500, "end": 1508, "loc": { "start": { "line": 43, "column": 26 }, "end": { "line": 43, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1508, "end": 1509, "loc": { "start": { "line": 43, "column": 34 }, "end": { "line": 43, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getButtonElement", "start": 1509, "end": 1525, "loc": { "start": { "line": 43, "column": 35 }, "end": { "line": 43, "column": 51 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1525, "end": 1526, "loc": { "start": { "line": 43, "column": 51 }, "end": { "line": 43, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonPressed", "start": 1526, "end": 1539, "loc": { "start": { "line": 43, "column": 52 }, "end": { "line": 43, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1539, "end": 1540, "loc": { "start": { "line": 43, "column": 65 }, "end": { "line": 43, "column": 66 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 1541, "end": 1543, "loc": { "start": { "line": 43, "column": 67 }, "end": { "line": 43, "column": 69 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "instance", "start": 1544, "end": 1552, "loc": { "start": { "line": 43, "column": 70 }, "end": { "line": 43, "column": 78 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1552, "end": 1553, "loc": { "start": { "line": 43, "column": 78 }, "end": { "line": 43, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getButtonElement", "start": 1553, "end": 1569, "loc": { "start": { "line": 43, "column": 79 }, "end": { "line": 43, "column": 95 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1569, "end": 1570, "loc": { "start": { "line": 43, "column": 95 }, "end": { "line": 43, "column": 96 } } }, { "type": { "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1570, "end": 1571, "loc": { "start": { "line": 43, "column": 96 }, "end": { "line": 43, "column": 97 } } }, { "type": { "label": "template", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "{", "start": 1571, "end": 1572, "loc": { "start": { "line": 43, "column": 97 }, "end": { "line": 43, "column": 98 } } }, { "type": { "label": "${", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1572, "end": 1574, "loc": { "start": { "line": 43, "column": 98 }, "end": { "line": 43, "column": 100 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonPressed", "start": 1574, "end": 1587, "loc": { "start": { "line": 43, "column": 100 }, "end": { "line": 43, "column": 113 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1587, "end": 1588, "loc": { "start": { "line": 43, "column": 113 }, "end": { "line": 43, "column": 114 } } }, { "type": { "label": "template", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "}", "start": 1588, "end": 1589, "loc": { "start": { "line": 43, "column": 114 }, "end": { "line": 43, "column": 115 } } }, { "type": { "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1589, "end": 1590, "loc": { "start": { "line": 43, "column": 115 }, "end": { "line": 43, "column": 116 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1590, "end": 1591, "loc": { "start": { "line": 43, "column": 116 }, "end": { "line": 43, "column": 117 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1591, "end": 1592, "loc": { "start": { "line": 43, "column": 117 }, "end": { "line": 43, "column": 118 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 1606, "end": 1608, "loc": { "start": { "line": 45, "column": 10 }, "end": { "line": 45, "column": 12 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1608, "end": 1609, "loc": { "start": { "line": 45, "column": 12 }, "end": { "line": 45, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonDOM", "start": 1609, "end": 1618, "loc": { "start": { "line": 45, "column": 13 }, "end": { "line": 45, "column": 22 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1618, "end": 1619, "loc": { "start": { "line": 45, "column": 22 }, "end": { "line": 45, "column": 23 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1619, "end": 1620, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buttonDOM", "start": 1634, "end": 1643, "loc": { "start": { "line": 46, "column": 12 }, "end": { "line": 46, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1643, "end": 1644, "loc": { "start": { "line": 46, "column": 21 }, "end": { "line": 46, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "removeAttribute", "start": 1644, "end": 1659, "loc": { "start": { "line": 46, "column": 22 }, "end": { "line": 46, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1659, "end": 1660, "loc": { "start": { "line": 46, "column": 37 }, "end": { "line": 46, "column": 38 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "style", "start": 1660, "end": 1667, "loc": { "start": { "line": 46, "column": 38 }, "end": { "line": 46, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1667, "end": 1668, "loc": { "start": { "line": 46, "column": 45 }, "end": { "line": 46, "column": 46 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1668, "end": 1669, "loc": { "start": { "line": 46, "column": 46 }, "end": { "line": 46, "column": 47 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1681, "end": 1682, "loc": { "start": { "line": 47, "column": 10 }, "end": { "line": 47, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1692, "end": 1693, "loc": { "start": { "line": 48, "column": 8 }, "end": { "line": 48, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1693, "end": 1694, "loc": { "start": { "line": 48, "column": 9 }, "end": { "line": 48, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1694, "end": 1695, "loc": { "start": { "line": 48, "column": 10 }, "end": { "line": 48, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1703, "end": 1704, "loc": { "start": { "line": 49, "column": 6 }, "end": { "line": 49, "column": 7 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1710, "end": 1711, "loc": { "start": { "line": 50, "column": 4 }, "end": { "line": 50, "column": 5 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1711, "end": 1712, "loc": { "start": { "line": 50, "column": 5 }, "end": { "line": 50, "column": 6 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1712, "end": 1713, "loc": { "start": { "line": 50, "column": 6 }, "end": { "line": 50, "column": 7 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1717, "end": 1718, "loc": { "start": { "line": 51, "column": 2 }, "end": { "line": 51, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", "start": 1724, "end": 1871, "loc": { "start": { "line": 53, "column": 2 }, "end": { "line": 56, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getSimpleKeyboardLayoutKey", "start": 1875, "end": 1901, "loc": { "start": { "line": 57, "column": 2 }, "end": { "line": 57, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1902, "end": 1903, "loc": { "start": { "line": 57, "column": 29 }, "end": { "line": 57, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1904, "end": 1905, "loc": { "start": { "line": 57, "column": 31 }, "end": { "line": 57, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 1905, "end": 1910, "loc": { "start": { "line": 57, "column": 32 }, "end": { "line": 57, "column": 37 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1910, "end": 1911, "loc": { "start": { "line": 57, "column": 37 }, "end": { "line": 57, "column": 38 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1912, "end": 1914, "loc": { "start": { "line": 57, "column": 39 }, "end": { "line": 57, "column": 41 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1915, "end": 1916, "loc": { "start": { "line": 57, "column": 42 }, "end": { "line": 57, "column": 43 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 1922, "end": 1924, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 58, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1924, "end": 1925, "loc": { "start": { "line": 58, "column": 6 }, "end": { "line": 58, "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": 1925, "end": 1929, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1929, "end": 1930, "loc": { "start": { "line": 58, "column": 11 }, "end": { "line": 58, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "simpleKeyboardInstance", "start": 1930, "end": 1952, "loc": { "start": { "line": 58, "column": 12 }, "end": { "line": 58, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1952, "end": 1953, "loc": { "start": { "line": 58, "column": 34 }, "end": { "line": 58, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "options", "start": 1953, "end": 1960, "loc": { "start": { "line": 58, "column": 35 }, "end": { "line": 58, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1960, "end": 1961, "loc": { "start": { "line": 58, "column": 42 }, "end": { "line": 58, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "debug", "start": 1961, "end": 1966, "loc": { "start": { "line": 58, "column": 43 }, "end": { "line": 58, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1966, "end": 1967, "loc": { "start": { "line": 58, "column": 48 }, "end": { "line": 58, "column": 49 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1967, "end": 1968, "loc": { "start": { "line": 58, "column": 49 }, "end": { "line": 58, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "console", "start": 1976, "end": 1983, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1983, "end": 1984, "loc": { "start": { "line": 59, "column": 13 }, "end": { "line": 59, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "log", "start": 1984, "end": 1987, "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1987, "end": 1988, "loc": { "start": { "line": 59, "column": 17 }, "end": { "line": 59, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 1988, "end": 1993, "loc": { "start": { "line": 59, "column": 18 }, "end": { "line": 59, "column": 23 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1993, "end": 1994, "loc": { "start": { "line": 59, "column": 23 }, "end": { "line": 59, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1994, "end": 1995, "loc": { "start": { "line": 59, "column": 24 }, "end": { "line": 59, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2001, "end": 2002, "loc": { "start": { "line": 60, "column": 4 }, "end": { "line": 60, "column": 5 } } }, { "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": 2014, "end": 2017, "loc": { "start": { "line": 62, "column": 4 }, "end": { "line": 62, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "output", "start": 2018, "end": 2024, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 14 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2024, "end": 2025, "loc": { "start": { "line": 62, "column": 14 }, "end": { "line": 62, "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": 2033, "end": 2035, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2035, "end": 2036, "loc": { "start": { "line": 64, "column": 6 }, "end": { "line": 64, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2044, "end": 2049, "loc": { "start": { "line": 65, "column": 6 }, "end": { "line": 65, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2049, "end": 2050, "loc": { "start": { "line": 65, "column": 11 }, "end": { "line": 65, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2050, "end": 2054, "loc": { "start": { "line": 65, "column": 12 }, "end": { "line": 65, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2054, "end": 2055, "loc": { "start": { "line": 65, "column": 16 }, "end": { "line": 65, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "includes", "start": 2055, "end": 2063, "loc": { "start": { "line": 65, "column": 17 }, "end": { "line": 65, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2063, "end": 2064, "loc": { "start": { "line": 65, "column": 25 }, "end": { "line": 65, "column": 26 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Numpad", "start": 2064, "end": 2072, "loc": { "start": { "line": 65, "column": 26 }, "end": { "line": 65, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2072, "end": 2073, "loc": { "start": { "line": 65, "column": 34 }, "end": { "line": 65, "column": 35 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 2074, "end": 2076, "loc": { "start": { "line": 65, "column": 36 }, "end": { "line": 65, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2084, "end": 2089, "loc": { "start": { "line": 66, "column": 6 }, "end": { "line": 66, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2089, "end": 2090, "loc": { "start": { "line": 66, "column": 11 }, "end": { "line": 66, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2090, "end": 2094, "loc": { "start": { "line": 66, "column": 12 }, "end": { "line": 66, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2094, "end": 2095, "loc": { "start": { "line": 66, "column": 16 }, "end": { "line": 66, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "includes", "start": 2095, "end": 2103, "loc": { "start": { "line": 66, "column": 17 }, "end": { "line": 66, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2103, "end": 2104, "loc": { "start": { "line": 66, "column": 25 }, "end": { "line": 66, "column": 26 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Shift", "start": 2104, "end": 2111, "loc": { "start": { "line": 66, "column": 26 }, "end": { "line": 66, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2111, "end": 2112, "loc": { "start": { "line": 66, "column": 33 }, "end": { "line": 66, "column": 34 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 2113, "end": 2115, "loc": { "start": { "line": 66, "column": 35 }, "end": { "line": 66, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2123, "end": 2128, "loc": { "start": { "line": 67, "column": 6 }, "end": { "line": 67, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2128, "end": 2129, "loc": { "start": { "line": 67, "column": 11 }, "end": { "line": 67, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2129, "end": 2133, "loc": { "start": { "line": 67, "column": 12 }, "end": { "line": 67, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2133, "end": 2134, "loc": { "start": { "line": 67, "column": 16 }, "end": { "line": 67, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "includes", "start": 2134, "end": 2142, "loc": { "start": { "line": 67, "column": 17 }, "end": { "line": 67, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2142, "end": 2143, "loc": { "start": { "line": 67, "column": 25 }, "end": { "line": 67, "column": 26 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Space", "start": 2143, "end": 2150, "loc": { "start": { "line": 67, "column": 26 }, "end": { "line": 67, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2150, "end": 2151, "loc": { "start": { "line": 67, "column": 33 }, "end": { "line": 67, "column": 34 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 2152, "end": 2154, "loc": { "start": { "line": 67, "column": 35 }, "end": { "line": 67, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2162, "end": 2167, "loc": { "start": { "line": 68, "column": 6 }, "end": { "line": 68, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2167, "end": 2168, "loc": { "start": { "line": 68, "column": 11 }, "end": { "line": 68, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2168, "end": 2172, "loc": { "start": { "line": 68, "column": 12 }, "end": { "line": 68, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2172, "end": 2173, "loc": { "start": { "line": 68, "column": 16 }, "end": { "line": 68, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "includes", "start": 2173, "end": 2181, "loc": { "start": { "line": 68, "column": 17 }, "end": { "line": 68, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2181, "end": 2182, "loc": { "start": { "line": 68, "column": 25 }, "end": { "line": 68, "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": 2182, "end": 2193, "loc": { "start": { "line": 68, "column": 26 }, "end": { "line": 68, "column": 37 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2193, "end": 2194, "loc": { "start": { "line": 68, "column": 37 }, "end": { "line": 68, "column": 38 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 2195, "end": 2197, "loc": { "start": { "line": 68, "column": 39 }, "end": { "line": 68, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2205, "end": 2210, "loc": { "start": { "line": 69, "column": 6 }, "end": { "line": 69, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2210, "end": 2211, "loc": { "start": { "line": 69, "column": 11 }, "end": { "line": 69, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2211, "end": 2215, "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2215, "end": 2216, "loc": { "start": { "line": 69, "column": 16 }, "end": { "line": 69, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "includes", "start": 2216, "end": 2224, "loc": { "start": { "line": 69, "column": 17 }, "end": { "line": 69, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2224, "end": 2225, "loc": { "start": { "line": 69, "column": 25 }, "end": { "line": 69, "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": 2225, "end": 2234, "loc": { "start": { "line": 69, "column": 26 }, "end": { "line": 69, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2234, "end": 2235, "loc": { "start": { "line": 69, "column": 35 }, "end": { "line": 69, "column": 36 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 2236, "end": 2238, "loc": { "start": { "line": 69, "column": 37 }, "end": { "line": 69, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2246, "end": 2251, "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": 2251, "end": 2252, "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": 2252, "end": 2256, "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": 2256, "end": 2257, "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": 2257, "end": 2265, "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": 2265, "end": 2266, "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": "Alt", "start": 2266, "end": 2271, "loc": { "start": { "line": 70, "column": 26 }, "end": { "line": 70, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2271, "end": 2272, "loc": { "start": { "line": 70, "column": 31 }, "end": { "line": 70, "column": 32 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 2273, "end": 2275, "loc": { "start": { "line": 70, "column": 33 }, "end": { "line": 70, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2283, "end": 2288, "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": 2288, "end": 2289, "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": 2289, "end": 2293, "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": 2293, "end": 2294, "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": 2294, "end": 2302, "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": 2302, "end": 2303, "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": "Meta", "start": 2303, "end": 2309, "loc": { "start": { "line": 71, "column": 26 }, "end": { "line": 71, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2309, "end": 2310, "loc": { "start": { "line": 71, "column": 32 }, "end": { "line": 71, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2316, "end": 2317, "loc": { "start": { "line": 72, "column": 4 }, "end": { "line": 72, "column": 5 } } }, { "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": 72, "column": 5 }, "end": { "line": 72, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "output", "start": 2326, "end": 2332, "loc": { "start": { "line": 73, "column": 6 }, "end": { "line": 73, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2333, "end": 2334, "loc": { "start": { "line": 73, "column": 13 }, "end": { "line": 73, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2335, "end": 2340, "loc": { "start": { "line": 73, "column": 15 }, "end": { "line": 73, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2340, "end": 2341, "loc": { "start": { "line": 73, "column": 20 }, "end": { "line": 73, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2341, "end": 2345, "loc": { "start": { "line": 73, "column": 21 }, "end": { "line": 73, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2345, "end": 2346, "loc": { "start": { "line": 73, "column": 25 }, "end": { "line": 73, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2352, "end": 2353, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "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": 2354, "end": 2358, "loc": { "start": { "line": 74, "column": 6 }, "end": { "line": 74, "column": 10 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2359, "end": 2360, "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": "output", "start": 2368, "end": 2374, "loc": { "start": { "line": 75, "column": 6 }, "end": { "line": 75, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2375, "end": 2376, "loc": { "start": { "line": 75, "column": 13 }, "end": { "line": 75, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2377, "end": 2382, "loc": { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2382, "end": 2383, "loc": { "start": { "line": 75, "column": 20 }, "end": { "line": 75, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 2383, "end": 2386, "loc": { "start": { "line": 75, "column": 21 }, "end": { "line": 75, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2386, "end": 2387, "loc": { "start": { "line": 75, "column": 24 }, "end": { "line": 75, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2393, "end": 2394, "loc": { "start": { "line": 76, "column": 4 }, "end": { "line": 76, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ", "start": 2402, "end": 2471, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 80, "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": 2477, "end": 2479, "loc": { "start": { "line": 81, "column": 4 }, "end": { "line": 81, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2480, "end": 2481, "loc": { "start": { "line": 81, "column": 7 }, "end": { "line": 81, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "output", "start": 2489, "end": 2495, "loc": { "start": { "line": 82, "column": 6 }, "end": { "line": 82, "column": 12 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 2496, "end": 2499, "loc": { "start": { "line": 82, "column": 13 }, "end": { "line": 82, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "output", "start": 2500, "end": 2506, "loc": { "start": { "line": 82, "column": 17 }, "end": { "line": 82, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2506, "end": 2507, "loc": { "start": { "line": 82, "column": 23 }, "end": { "line": 82, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "toUpperCase", "start": 2507, "end": 2518, "loc": { "start": { "line": 82, "column": 24 }, "end": { "line": 82, "column": 35 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2518, "end": 2519, "loc": { "start": { "line": 82, "column": 35 }, "end": { "line": 82, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2519, "end": 2520, "loc": { "start": { "line": 82, "column": 36 }, "end": { "line": 82, "column": 37 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 2521, "end": 2523, "loc": { "start": { "line": 82, "column": 38 }, "end": { "line": 82, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2531, "end": 2532, "loc": { "start": { "line": 83, "column": 6 }, "end": { "line": 83, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2532, "end": 2537, "loc": { "start": { "line": 83, "column": 7 }, "end": { "line": 83, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2537, "end": 2538, "loc": { "start": { "line": 83, "column": 12 }, "end": { "line": 83, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2538, "end": 2542, "loc": { "start": { "line": 83, "column": 13 }, "end": { "line": 83, "column": 17 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2542, "end": 2543, "loc": { "start": { "line": 83, "column": 17 }, "end": { "line": 83, "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": 2543, "end": 2544, "loc": { "start": { "line": 83, "column": 18 }, "end": { "line": 83, "column": 19 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2544, "end": 2545, "loc": { "start": { "line": 83, "column": 19 }, "end": { "line": 83, "column": 20 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 2546, "end": 2549, "loc": { "start": { "line": 83, "column": 21 }, "end": { "line": 83, "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": 2550, "end": 2553, "loc": { "start": { "line": 83, "column": 25 }, "end": { "line": 83, "column": 28 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 2554, "end": 2556, "loc": { "start": { "line": 83, "column": 29 }, "end": { "line": 83, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Number", "start": 2557, "end": 2563, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2563, "end": 2564, "loc": { "start": { "line": 83, "column": 38 }, "end": { "line": 83, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isInteger", "start": 2564, "end": 2573, "loc": { "start": { "line": 83, "column": 39 }, "end": { "line": 83, "column": 48 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2573, "end": 2574, "loc": { "start": { "line": 83, "column": 48 }, "end": { "line": 83, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Number", "start": 2574, "end": 2580, "loc": { "start": { "line": 83, "column": 49 }, "end": { "line": 83, "column": 55 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2580, "end": 2581, "loc": { "start": { "line": 83, "column": 55 }, "end": { "line": 83, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2581, "end": 2586, "loc": { "start": { "line": 83, "column": 56 }, "end": { "line": 83, "column": 61 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2586, "end": 2587, "loc": { "start": { "line": 83, "column": 61 }, "end": { "line": 83, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2587, "end": 2591, "loc": { "start": { "line": 83, "column": 62 }, "end": { "line": 83, "column": 66 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2591, "end": 2592, "loc": { "start": { "line": 83, "column": 66 }, "end": { "line": 83, "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": 2592, "end": 2593, "loc": { "start": { "line": 83, "column": 67 }, "end": { "line": 83, "column": 68 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2593, "end": 2594, "loc": { "start": { "line": 83, "column": 68 }, "end": { "line": 83, "column": 69 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2594, "end": 2595, "loc": { "start": { "line": 83, "column": 69 }, "end": { "line": 83, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2595, "end": 2596, "loc": { "start": { "line": 83, "column": 70 }, "end": { "line": 83, "column": 71 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 2597, "end": 2599, "loc": { "start": { "line": 83, "column": 72 }, "end": { "line": 83, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "event", "start": 2600, "end": 2605, "loc": { "start": { "line": 83, "column": 75 }, "end": { "line": 83, "column": 80 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2605, "end": 2606, "loc": { "start": { "line": 83, "column": 80 }, "end": { "line": 83, "column": 81 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "code", "start": 2606, "end": 2610, "loc": { "start": { "line": 83, "column": 81 }, "end": { "line": 83, "column": 85 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2610, "end": 2611, "loc": { "start": { "line": 83, "column": 85 }, "end": { "line": 83, "column": 86 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 2611, "end": 2617, "loc": { "start": { "line": 83, "column": 86 }, "end": { "line": 83, "column": 92 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<=", "start": 2618, "end": 2620, "loc": { "start": { "line": 83, "column": 93 }, "end": { "line": 83, "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": 2621, "end": 2622, "loc": { "start": { "line": 83, "column": 96 }, "end": { "line": 83, "column": 97 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2622, "end": 2623, "loc": { "start": { "line": 83, "column": 97 }, "end": { "line": 83, "column": 98 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2629, "end": 2630, "loc": { "start": { "line": 84, "column": 4 }, "end": { "line": 84, "column": 5 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2631, "end": 2632, "loc": { "start": { "line": 84, "column": 6 }, "end": { "line": 84, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "output", "start": 2640, "end": 2646, "loc": { "start": { "line": 85, "column": 6 }, "end": { "line": 85, "column": 12 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2647, "end": 2648, "loc": { "start": { "line": 85, "column": 13 }, "end": { "line": 85, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "output", "start": 2649, "end": 2655, "loc": { "start": { "line": 85, "column": 15 }, "end": { "line": 85, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2655, "end": 2656, "loc": { "start": { "line": 85, "column": 21 }, "end": { "line": 85, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "toLowerCase", "start": 2656, "end": 2667, "loc": { "start": { "line": 85, "column": 22 }, "end": { "line": 85, "column": 33 } } }, { "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": 85, "column": 33 }, "end": { "line": 85, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2668, "end": 2669, "loc": { "start": { "line": 85, "column": 34 }, "end": { "line": 85, "column": 35 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2669, "end": 2670, "loc": { "start": { "line": 85, "column": 35 }, "end": { "line": 85, "column": 36 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2676, "end": 2677, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 86, "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": 2685, "end": 2691, "loc": { "start": { "line": 88, "column": 4 }, "end": { "line": 88, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "output", "start": 2692, "end": 2698, "loc": { "start": { "line": 88, "column": 11 }, "end": { "line": 88, "column": 17 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2698, "end": 2699, "loc": { "start": { "line": 88, "column": 17 }, "end": { "line": 88, "column": 18 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2703, "end": 2704, "loc": { "start": { "line": 89, "column": 2 }, "end": { "line": 89, "column": 3 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2706, "end": 2707, "loc": { "start": { "line": 90, "column": 0 }, "end": { "line": 90, "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": 2711, "end": 2717, "loc": { "start": { "line": 92, "column": 0 }, "end": { "line": 92, "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": 2718, "end": 2725, "loc": { "start": { "line": 92, "column": 7 }, "end": { "line": 92, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "PhysicalKeyboard", "start": 2726, "end": 2742, "loc": { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2742, "end": 2743, "loc": { "start": { "line": 92, "column": 31 }, "end": { "line": 92, "column": 32 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2743, "end": 2743, "loc": { "start": { "line": 92, "column": 32 }, "end": { "line": 92, "column": 32 } } } ] }