Francisco Hodge 444806160b Docs update
2018-11-01 12:45:04 -04:00

13171 lines
393 KiB
JSON

{
"type": "File",
"start": 0,
"end": 1921,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 85,
"column": 19
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1921,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 85,
"column": 19
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 30
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 15
},
"identifierName": "Keyboard"
},
"name": "Keyboard"
}
}
],
"source": {
"type": "StringLiteral",
"start": 21,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 29
}
},
"extra": {
"rawValue": "../lib",
"raw": "'../lib'"
},
"value": "../lib"
}
},
{
"type": "ImportDeclaration",
"start": 32,
"end": 55,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 23
}
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"start": 39,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 22
}
},
"extra": {
"rawValue": "./css/App.css",
"raw": "'./css/App.css'"
},
"value": "./css/App.css"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * simple-keyboard demo\r\n ",
"start": 59,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
}
]
},
{
"type": "Identifier",
"start": 94,
"end": 1898,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 83,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 100,
"end": 103,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 9
},
"identifierName": "App"
},
"name": "App",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 104,
"end": 1898,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 83,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 157,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 19,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 157,
"end": 168,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 13
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 170,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 19,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 177,
"end": 241,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 68
}
},
"expression": {
"type": "CallExpression",
"start": 177,
"end": 240,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 67
}
},
"callee": {
"type": "MemberExpression",
"start": 177,
"end": 202,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 177,
"end": 185,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 12
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 186,
"end": 202,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 203,
"end": 221,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 48
}
},
"extra": {
"rawValue": "DOMContentLoaded",
"raw": "'DOMContentLoaded'"
},
"value": "DOMContentLoaded"
},
{
"type": "MemberExpression",
"start": 223,
"end": 239,
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 12,
"column": 66
}
},
"object": {
"type": "ThisExpression",
"start": 223,
"end": 227,
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 12,
"column": 54
}
}
},
"property": {
"type": "Identifier",
"start": 228,
"end": 239,
"loc": {
"start": {
"line": 12,
"column": 55
},
"end": {
"line": 12,
"column": 66
},
"identifierName": "onDOMLoaded"
},
"name": "onDOMLoaded"
},
"computed": false
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Default input name\r\n * @type {string}\r\n ",
"start": 249,
"end": 311,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 17,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 317,
"end": 345,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 317,
"end": 344,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 317,
"end": 332,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 317,
"end": 321,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 322,
"end": 332,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 19
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "StringLiteral",
"start": 335,
"end": 344,
"loc": {
"start": {
"line": 18,
"column": 22
},
"end": {
"line": 18,
"column": 31
}
},
"extra": {
"rawValue": "default",
"raw": "\"default\""
},
"value": "default"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Default input name\r\n * @type {string}\r\n ",
"start": 249,
"end": 311,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 17,
"column": 7
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Instantiates the demo class\r\n ",
"start": 109,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 10,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Executed when the DOM is ready\r\n ",
"start": 356,
"end": 403,
"loc": {
"start": {
"line": 21,
"column": 2
},
"end": {
"line": 23,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 407,
"end": 1162,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 49,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 407,
"end": 418,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 13
},
"identifierName": "onDOMLoaded"
},
"name": "onDOMLoaded",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 421,
"end": 1162,
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 49,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 427,
"end": 1162,
"loc": {
"start": {
"line": 24,
"column": 22
},
"end": {
"line": 49,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 499,
"end": 767,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 35,
"column": 7
}
},
"expression": {
"type": "AssignmentExpression",
"start": 499,
"end": 766,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 35,
"column": 6
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 499,
"end": 512,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 499,
"end": 503,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 504,
"end": 512,
"loc": {
"start": {
"line": 28,
"column": 9
},
"end": {
"line": 28,
"column": 17
},
"identifierName": "keyboard"
},
"name": "keyboard"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NewExpression",
"start": 515,
"end": 766,
"loc": {
"start": {
"line": 28,
"column": 20
},
"end": {
"line": 35,
"column": 6
}
},
"callee": {
"type": "Identifier",
"start": 519,
"end": 527,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 32
},
"identifierName": "Keyboard"
},
"name": "Keyboard"
},
"arguments": [
{
"type": "ObjectExpression",
"start": 528,
"end": 765,
"loc": {
"start": {
"line": 28,
"column": 33
},
"end": {
"line": 35,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 559,
"end": 586,
"loc": {
"start": {
"line": 30,
"column": 6
},
"end": {
"line": 30,
"column": 33
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 559,
"end": 569,
"loc": {
"start": {
"line": 30,
"column": 6
},
"end": {
"line": 30,
"column": 16
},
"identifierName": "layoutName"
},
"name": "layoutName",
"leadingComments": null
},
"value": {
"type": "MemberExpression",
"start": 571,
"end": 586,
"loc": {
"start": {
"line": 30,
"column": 18
},
"end": {
"line": 30,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 571,
"end": 575,
"loc": {
"start": {
"line": 30,
"column": 18
},
"end": {
"line": 30,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"start": 576,
"end": 586,
"loc": {
"start": {
"line": 30,
"column": 23
},
"end": {
"line": 30,
"column": 33
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"computed": false
},
"leadingComments": [
{
"type": "CommentLine",
"value": "debug: true,",
"start": 537,
"end": 551,
"loc": {
"start": {
"line": 29,
"column": 6
},
"end": {
"line": 29,
"column": 20
}
}
}
]
},
{
"type": "ObjectProperty",
"start": 595,
"end": 634,
"loc": {
"start": {
"line": 31,
"column": 6
},
"end": {
"line": 31,
"column": 45
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 595,
"end": 603,
"loc": {
"start": {
"line": 31,
"column": 6
},
"end": {
"line": 31,
"column": 14
},
"identifierName": "onChange"
},
"name": "onChange"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 605,
"end": 634,
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 45
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 605,
"end": 610,
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 21
},
"identifierName": "input"
},
"name": "input"
}
],
"body": {
"type": "CallExpression",
"start": 614,
"end": 634,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 614,
"end": 627,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 38
}
},
"object": {
"type": "ThisExpression",
"start": 614,
"end": 618,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 619,
"end": 627,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 38
},
"identifierName": "onChange"
},
"name": "onChange"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 628,
"end": 633,
"loc": {
"start": {
"line": 31,
"column": 39
},
"end": {
"line": 31,
"column": 44
},
"identifierName": "input"
},
"name": "input"
}
]
}
}
},
{
"type": "ObjectProperty",
"start": 643,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 6
},
"end": {
"line": 32,
"column": 51
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 643,
"end": 653,
"loc": {
"start": {
"line": 32,
"column": 6
},
"end": {
"line": 32,
"column": 16
},
"identifierName": "onKeyPress"
},
"name": "onKeyPress"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 655,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 18
},
"end": {
"line": 32,
"column": 51
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 655,
"end": 661,
"loc": {
"start": {
"line": 32,
"column": 18
},
"end": {
"line": 32,
"column": 24
},
"identifierName": "button"
},
"name": "button"
}
],
"body": {
"type": "CallExpression",
"start": 665,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 28
},
"end": {
"line": 32,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 665,
"end": 680,
"loc": {
"start": {
"line": 32,
"column": 28
},
"end": {
"line": 32,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 665,
"end": 669,
"loc": {
"start": {
"line": 32,
"column": 28
},
"end": {
"line": 32,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 670,
"end": 680,
"loc": {
"start": {
"line": 32,
"column": 33
},
"end": {
"line": 32,
"column": 43
},
"identifierName": "onKeyPress"
},
"name": "onKeyPress"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 681,
"end": 687,
"loc": {
"start": {
"line": 32,
"column": 44
},
"end": {
"line": 32,
"column": 50
},
"identifierName": "button"
},
"name": "button"
}
]
}
}
},
{
"type": "ObjectProperty",
"start": 697,
"end": 717,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 26
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 697,
"end": 711,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 20
},
"identifierName": "newLineOnEnter"
},
"name": "newLineOnEnter"
},
"value": {
"type": "BooleanLiteral",
"start": 713,
"end": 717,
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 26
}
},
"value": true
}
},
{
"type": "ObjectProperty",
"start": 726,
"end": 757,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 726,
"end": 751,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 31
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"value": {
"type": "BooleanLiteral",
"start": 753,
"end": 757,
"loc": {
"start": {
"line": 34,
"column": 33
},
"end": {
"line": 34,
"column": 37
}
},
"value": true
}
}
]
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Creates a new simple-keyboard instance\r\n ",
"start": 434,
"end": 493,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 27,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Adding preview (demo only)\r\n ",
"start": 777,
"end": 824,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 39,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 830,
"end": 1015,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 44,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 830,
"end": 1014,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 44,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 830,
"end": 891,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 65
}
},
"object": {
"type": "CallExpression",
"start": 830,
"end": 872,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 830,
"end": 852,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 830,
"end": 838,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 839,
"end": 852,
"loc": {
"start": {
"line": 40,
"column": 13
},
"end": {
"line": 40,
"column": 26
},
"identifierName": "querySelector"
},
"name": "querySelector"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 853,
"end": 871,
"loc": {
"start": {
"line": 40,
"column": 27
},
"end": {
"line": 40,
"column": 45
}
},
"extra": {
"rawValue": ".simple-keyboard",
"raw": "'.simple-keyboard'"
},
"value": ".simple-keyboard"
}
],
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 873,
"end": 891,
"loc": {
"start": {
"line": 40,
"column": 47
},
"end": {
"line": 40,
"column": 65
},
"identifierName": "insertAdjacentHTML"
},
"name": "insertAdjacentHTML"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 892,
"end": 905,
"loc": {
"start": {
"line": 40,
"column": 66
},
"end": {
"line": 40,
"column": 79
}
},
"extra": {
"rawValue": "beforebegin",
"raw": "'beforebegin'"
},
"value": "beforebegin"
},
{
"type": "TemplateLiteral",
"start": 907,
"end": 1013,
"loc": {
"start": {
"line": 40,
"column": 81
},
"end": {
"line": 44,
"column": 5
}
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"start": 908,
"end": 1012,
"loc": {
"start": {
"line": 40,
"column": 82
},
"end": {
"line": 44,
"column": 4
}
},
"value": {
"raw": "\n <div class=\"simple-keyboard-preview\">\n <textarea class=\"input\"></textarea>\n </div>\n ",
"cooked": "\n <div class=\"simple-keyboard-preview\">\n <textarea class=\"input\"></textarea>\n </div>\n "
},
"tail": true
}
]
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Adding preview (demo only)\r\n ",
"start": 777,
"end": 824,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 39,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1025,
"end": 1157,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 48,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 1025,
"end": 1156,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 48,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 1025,
"end": 1074,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 53
}
},
"object": {
"type": "CallExpression",
"start": 1025,
"end": 1057,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 1025,
"end": 1047,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 1025,
"end": 1033,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 12
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 1034,
"end": 1047,
"loc": {
"start": {
"line": 46,
"column": 13
},
"end": {
"line": 46,
"column": 26
},
"identifierName": "querySelector"
},
"name": "querySelector"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1048,
"end": 1056,
"loc": {
"start": {
"line": 46,
"column": 27
},
"end": {
"line": 46,
"column": 35
}
},
"extra": {
"rawValue": ".input",
"raw": "'.input'"
},
"value": ".input"
}
]
},
"property": {
"type": "Identifier",
"start": 1058,
"end": 1074,
"loc": {
"start": {
"line": 46,
"column": 37
},
"end": {
"line": 46,
"column": 53
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1075,
"end": 1083,
"loc": {
"start": {
"line": 46,
"column": 54
},
"end": {
"line": 46,
"column": 62
}
},
"extra": {
"rawValue": "change",
"raw": "'change'"
},
"value": "change"
},
{
"type": "ArrowFunctionExpression",
"start": 1085,
"end": 1155,
"loc": {
"start": {
"line": 46,
"column": 64
},
"end": {
"line": 48,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1086,
"end": 1091,
"loc": {
"start": {
"line": 46,
"column": 65
},
"end": {
"line": 46,
"column": 70
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 1096,
"end": 1155,
"loc": {
"start": {
"line": 46,
"column": 75
},
"end": {
"line": 48,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1105,
"end": 1148,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 49
}
},
"expression": {
"type": "CallExpression",
"start": 1105,
"end": 1147,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 1105,
"end": 1127,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 1105,
"end": 1118,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 1105,
"end": 1109,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 1110,
"end": 1118,
"loc": {
"start": {
"line": 47,
"column": 11
},
"end": {
"line": 47,
"column": 19
},
"identifierName": "keyboard"
},
"name": "keyboard"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1119,
"end": 1127,
"loc": {
"start": {
"line": 47,
"column": 20
},
"end": {
"line": 47,
"column": 28
},
"identifierName": "setInput"
},
"name": "setInput"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 1128,
"end": 1146,
"loc": {
"start": {
"line": 47,
"column": 29
},
"end": {
"line": 47,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 1128,
"end": 1140,
"loc": {
"start": {
"line": 47,
"column": 29
},
"end": {
"line": 47,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 1128,
"end": 1133,
"loc": {
"start": {
"line": 47,
"column": 29
},
"end": {
"line": 47,
"column": 34
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1134,
"end": 1140,
"loc": {
"start": {
"line": 47,
"column": 35
},
"end": {
"line": 47,
"column": 41
},
"identifierName": "target"
},
"name": "target"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1141,
"end": 1146,
"loc": {
"start": {
"line": 47,
"column": 42
},
"end": {
"line": 47,
"column": 47
},
"identifierName": "value"
},
"name": "value"
},
"computed": false
}
]
}
}
],
"directives": []
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Executed when the DOM is ready\r\n ",
"start": 356,
"end": 403,
"loc": {
"start": {
"line": 21,
"column": 2
},
"end": {
"line": 23,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Handles shift functionality\r\n ",
"start": 1168,
"end": 1212,
"loc": {
"start": {
"line": 51,
"column": 2
},
"end": {
"line": 53,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 1216,
"end": 1452,
"loc": {
"start": {
"line": 54,
"column": 2
},
"end": {
"line": 61,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1216,
"end": 1233,
"loc": {
"start": {
"line": 54,
"column": 2
},
"end": {
"line": 54,
"column": 19
},
"identifierName": "handleShiftButton"
},
"name": "handleShiftButton",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 1236,
"end": 1452,
"loc": {
"start": {
"line": 54,
"column": 22
},
"end": {
"line": 61,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1242,
"end": 1452,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 61,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1249,
"end": 1282,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 37
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1253,
"end": 1281,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 36
}
},
"id": {
"type": "Identifier",
"start": 1253,
"end": 1263,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 18
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"init": {
"type": "MemberExpression",
"start": 1266,
"end": 1281,
"loc": {
"start": {
"line": 55,
"column": 21
},
"end": {
"line": 55,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1266,
"end": 1270,
"loc": {
"start": {
"line": 55,
"column": 21
},
"end": {
"line": 55,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"start": 1271,
"end": 1281,
"loc": {
"start": {
"line": 55,
"column": 26
},
"end": {
"line": 55,
"column": 36
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"computed": false
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 1288,
"end": 1371,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 56,
"column": 87
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1292,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 86
}
},
"id": {
"type": "Identifier",
"start": 1292,
"end": 1303,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 19
},
"identifierName": "shiftToggle"
},
"name": "shiftToggle"
},
"init": {
"type": "AssignmentExpression",
"start": 1306,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 22
},
"end": {
"line": 56,
"column": 86
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1306,
"end": 1321,
"loc": {
"start": {
"line": 56,
"column": 22
},
"end": {
"line": 56,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 1306,
"end": 1310,
"loc": {
"start": {
"line": 56,
"column": 22
},
"end": {
"line": 56,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 1311,
"end": 1321,
"loc": {
"start": {
"line": 56,
"column": 27
},
"end": {
"line": 56,
"column": 37
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"computed": false
},
"right": {
"type": "ConditionalExpression",
"start": 1324,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 40
},
"end": {
"line": 56,
"column": 86
}
},
"test": {
"type": "BinaryExpression",
"start": 1324,
"end": 1348,
"loc": {
"start": {
"line": 56,
"column": 40
},
"end": {
"line": 56,
"column": 64
}
},
"left": {
"type": "Identifier",
"start": 1324,
"end": 1334,
"loc": {
"start": {
"line": 56,
"column": 40
},
"end": {
"line": 56,
"column": 50
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 1339,
"end": 1348,
"loc": {
"start": {
"line": 56,
"column": 55
},
"end": {
"line": 56,
"column": 64
}
},
"extra": {
"rawValue": "default",
"raw": "\"default\""
},
"value": "default"
}
},
"consequent": {
"type": "StringLiteral",
"start": 1351,
"end": 1358,
"loc": {
"start": {
"line": 56,
"column": 67
},
"end": {
"line": 56,
"column": 74
}
},
"extra": {
"rawValue": "shift",
"raw": "\"shift\""
},
"value": "shift"
},
"alternate": {
"type": "StringLiteral",
"start": 1361,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 77
},
"end": {
"line": 56,
"column": 86
}
},
"extra": {
"rawValue": "default",
"raw": "\"default\""
},
"value": "default"
}
}
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 1381,
"end": 1447,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 60,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 1381,
"end": 1446,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 60,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 1381,
"end": 1405,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 1381,
"end": 1394,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 1381,
"end": 1385,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 1386,
"end": 1394,
"loc": {
"start": {
"line": 58,
"column": 9
},
"end": {
"line": 58,
"column": 17
},
"identifierName": "keyboard"
},
"name": "keyboard"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1395,
"end": 1405,
"loc": {
"start": {
"line": 58,
"column": 18
},
"end": {
"line": 58,
"column": 28
},
"identifierName": "setOptions"
},
"name": "setOptions"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 1406,
"end": 1445,
"loc": {
"start": {
"line": 58,
"column": 29
},
"end": {
"line": 60,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1415,
"end": 1438,
"loc": {
"start": {
"line": 59,
"column": 6
},
"end": {
"line": 59,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1415,
"end": 1425,
"loc": {
"start": {
"line": 59,
"column": 6
},
"end": {
"line": 59,
"column": 16
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"value": {
"type": "Identifier",
"start": 1427,
"end": 1438,
"loc": {
"start": {
"line": 59,
"column": 18
},
"end": {
"line": 59,
"column": 29
},
"identifierName": "shiftToggle"
},
"name": "shiftToggle"
}
}
]
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Handles shift functionality\r\n ",
"start": 1168,
"end": 1212,
"loc": {
"start": {
"line": 51,
"column": 2
},
"end": {
"line": 53,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Called when simple-keyboard input has changed\r\n ",
"start": 1458,
"end": 1520,
"loc": {
"start": {
"line": 63,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 1524,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 68,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1524,
"end": 1532,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 66,
"column": 10
},
"identifierName": "onChange"
},
"name": "onChange",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 1535,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 68,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1535,
"end": 1540,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 18
},
"identifierName": "input"
},
"name": "input"
}
],
"body": {
"type": "BlockStatement",
"start": 1544,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 22
},
"end": {
"line": 68,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1551,
"end": 1598,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 51
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1551,
"end": 1597,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 50
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1551,
"end": 1589,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 42
}
},
"object": {
"type": "CallExpression",
"start": 1551,
"end": 1583,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 1551,
"end": 1573,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 1551,
"end": 1559,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 12
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 1560,
"end": 1573,
"loc": {
"start": {
"line": 67,
"column": 13
},
"end": {
"line": 67,
"column": 26
},
"identifierName": "querySelector"
},
"name": "querySelector"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1574,
"end": 1582,
"loc": {
"start": {
"line": 67,
"column": 27
},
"end": {
"line": 67,
"column": 35
}
},
"extra": {
"rawValue": ".input",
"raw": "'.input'"
},
"value": ".input"
}
]
},
"property": {
"type": "Identifier",
"start": 1584,
"end": 1589,
"loc": {
"start": {
"line": 67,
"column": 37
},
"end": {
"line": 67,
"column": 42
},
"identifierName": "value"
},
"name": "value"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1592,
"end": 1597,
"loc": {
"start": {
"line": 67,
"column": 45
},
"end": {
"line": 67,
"column": 50
},
"identifierName": "input"
},
"name": "input"
}
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Called when simple-keyboard input has changed\r\n ",
"start": 1458,
"end": 1520,
"loc": {
"start": {
"line": 63,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ",
"start": 1609,
"end": 1670,
"loc": {
"start": {
"line": 70,
"column": 2
},
"end": {
"line": 72,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 1674,
"end": 1893,
"loc": {
"start": {
"line": 73,
"column": 2
},
"end": {
"line": 81,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1674,
"end": 1684,
"loc": {
"start": {
"line": 73,
"column": 2
},
"end": {
"line": 73,
"column": 12
},
"identifierName": "onKeyPress"
},
"name": "onKeyPress",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 1687,
"end": 1893,
"loc": {
"start": {
"line": 73,
"column": 15
},
"end": {
"line": 81,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1687,
"end": 1693,
"loc": {
"start": {
"line": 73,
"column": 15
},
"end": {
"line": 73,
"column": 21
},
"identifierName": "button"
},
"name": "button"
}
],
"body": {
"type": "BlockStatement",
"start": 1697,
"end": 1893,
"loc": {
"start": {
"line": 73,
"column": 25
},
"end": {
"line": 81,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1704,
"end": 1742,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 42
}
},
"expression": {
"type": "CallExpression",
"start": 1704,
"end": 1741,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 1704,
"end": 1715,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 1704,
"end": 1711,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 11
},
"identifierName": "console"
},
"name": "console"
},
"property": {
"type": "Identifier",
"start": 1712,
"end": 1715,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 15
},
"identifierName": "log"
},
"name": "log"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1716,
"end": 1732,
"loc": {
"start": {
"line": 74,
"column": 16
},
"end": {
"line": 74,
"column": 32
}
},
"extra": {
"rawValue": "Button pressed",
"raw": "\"Button pressed\""
},
"value": "Button pressed"
},
{
"type": "Identifier",
"start": 1734,
"end": 1740,
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 40
},
"identifierName": "button"
},
"name": "button"
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Shift functionality\r\n ",
"start": 1754,
"end": 1798,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 78,
"column": 9
}
}
}
]
},
{
"type": "IfStatement",
"start": 1806,
"end": 1888,
"loc": {
"start": {
"line": 79,
"column": 6
},
"end": {
"line": 80,
"column": 33
}
},
"test": {
"type": "LogicalExpression",
"start": 1809,
"end": 1852,
"loc": {
"start": {
"line": 79,
"column": 9
},
"end": {
"line": 79,
"column": 52
}
},
"left": {
"type": "BinaryExpression",
"start": 1809,
"end": 1828,
"loc": {
"start": {
"line": 79,
"column": 9
},
"end": {
"line": 79,
"column": 28
}
},
"left": {
"type": "Identifier",
"start": 1809,
"end": 1815,
"loc": {
"start": {
"line": 79,
"column": 9
},
"end": {
"line": 79,
"column": 15
},
"identifierName": "button"
},
"name": "button",
"leadingComments": null
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 1820,
"end": 1828,
"loc": {
"start": {
"line": 79,
"column": 20
},
"end": {
"line": 79,
"column": 28
}
},
"extra": {
"rawValue": "{lock}",
"raw": "\"{lock}\""
},
"value": "{lock}"
},
"leadingComments": null
},
"operator": "||",
"right": {
"type": "BinaryExpression",
"start": 1832,
"end": 1852,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 52
}
},
"left": {
"type": "Identifier",
"start": 1832,
"end": 1838,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 38
},
"identifierName": "button"
},
"name": "button"
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 1843,
"end": 1852,
"loc": {
"start": {
"line": 79,
"column": 43
},
"end": {
"line": 79,
"column": 52
}
},
"extra": {
"rawValue": "{shift}",
"raw": "\"{shift}\""
},
"value": "{shift}"
}
},
"leadingComments": null
},
"consequent": {
"type": "ExpressionStatement",
"start": 1863,
"end": 1888,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 33
}
},
"expression": {
"type": "CallExpression",
"start": 1863,
"end": 1887,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 1863,
"end": 1885,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 1863,
"end": 1867,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1868,
"end": 1885,
"loc": {
"start": {
"line": 80,
"column": 13
},
"end": {
"line": 80,
"column": 30
},
"identifierName": "handleShiftButton"
},
"name": "handleShiftButton"
},
"computed": false
},
"arguments": []
}
},
"alternate": null,
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Shift functionality\r\n ",
"start": 1754,
"end": 1798,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 78,
"column": 9
}
}
}
]
}
],
"directives": []
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ",
"start": 1609,
"end": 1670,
"loc": {
"start": {
"line": 70,
"column": 2
},
"end": {
"line": 72,
"column": 5
}
}
}
]
}
]
},
"leadingComments": [],
"name": "_",
"trailingComments": []
},
{
"type": "Identifier",
"start": 1902,
"end": 1921,
"loc": {
"start": {
"line": 85,
"column": 0
},
"end": {
"line": 85,
"column": 19
}
},
"declaration": {
"type": "Identifier",
"start": 1917,
"end": 1920,
"loc": {
"start": {
"line": 85,
"column": 15
},
"end": {
"line": 85,
"column": 18
},
"identifierName": "App"
},
"name": "App"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 1902,
"end": 1921,
"loc": {
"start": {
"line": 85,
"column": 0
},
"end": {
"line": 85,
"column": 19
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 94,
"end": 1898,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 83,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 100,
"end": 103,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 9
},
"identifierName": "App"
},
"name": "App",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 104,
"end": 1898,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 83,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 157,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 19,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 157,
"end": 168,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 13
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 170,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 19,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 177,
"end": 241,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 68
}
},
"expression": {
"type": "CallExpression",
"start": 177,
"end": 240,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 67
}
},
"callee": {
"type": "MemberExpression",
"start": 177,
"end": 202,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 177,
"end": 185,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 12
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 186,
"end": 202,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 29
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 203,
"end": 221,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 48
}
},
"extra": {
"rawValue": "DOMContentLoaded",
"raw": "'DOMContentLoaded'"
},
"value": "DOMContentLoaded"
},
{
"type": "MemberExpression",
"start": 223,
"end": 239,
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 12,
"column": 66
}
},
"object": {
"type": "ThisExpression",
"start": 223,
"end": 227,
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 12,
"column": 54
}
}
},
"property": {
"type": "Identifier",
"start": 228,
"end": 239,
"loc": {
"start": {
"line": 12,
"column": 55
},
"end": {
"line": 12,
"column": 66
},
"identifierName": "onDOMLoaded"
},
"name": "onDOMLoaded"
},
"computed": false
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Default input name\r\n * @type {string}\r\n ",
"start": 249,
"end": 311,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 17,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 317,
"end": 345,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 317,
"end": 344,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 317,
"end": 332,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 317,
"end": 321,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 322,
"end": 332,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 19
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "StringLiteral",
"start": 335,
"end": 344,
"loc": {
"start": {
"line": 18,
"column": 22
},
"end": {
"line": 18,
"column": 31
}
},
"extra": {
"rawValue": "default",
"raw": "\"default\""
},
"value": "default"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Default input name\r\n * @type {string}\r\n ",
"start": 249,
"end": 311,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 17,
"column": 7
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Instantiates the demo class\r\n ",
"start": 109,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 10,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Executed when the DOM is ready\r\n ",
"start": 356,
"end": 403,
"loc": {
"start": {
"line": 21,
"column": 2
},
"end": {
"line": 23,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 407,
"end": 1162,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 49,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 407,
"end": 418,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 13
},
"identifierName": "onDOMLoaded"
},
"name": "onDOMLoaded",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 421,
"end": 1162,
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 49,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 427,
"end": 1162,
"loc": {
"start": {
"line": 24,
"column": 22
},
"end": {
"line": 49,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 499,
"end": 767,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 35,
"column": 7
}
},
"expression": {
"type": "AssignmentExpression",
"start": 499,
"end": 766,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 35,
"column": 6
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 499,
"end": 512,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 499,
"end": 503,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 8
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 504,
"end": 512,
"loc": {
"start": {
"line": 28,
"column": 9
},
"end": {
"line": 28,
"column": 17
},
"identifierName": "keyboard"
},
"name": "keyboard"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NewExpression",
"start": 515,
"end": 766,
"loc": {
"start": {
"line": 28,
"column": 20
},
"end": {
"line": 35,
"column": 6
}
},
"callee": {
"type": "Identifier",
"start": 519,
"end": 527,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 32
},
"identifierName": "Keyboard"
},
"name": "Keyboard"
},
"arguments": [
{
"type": "ObjectExpression",
"start": 528,
"end": 765,
"loc": {
"start": {
"line": 28,
"column": 33
},
"end": {
"line": 35,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 559,
"end": 586,
"loc": {
"start": {
"line": 30,
"column": 6
},
"end": {
"line": 30,
"column": 33
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 559,
"end": 569,
"loc": {
"start": {
"line": 30,
"column": 6
},
"end": {
"line": 30,
"column": 16
},
"identifierName": "layoutName"
},
"name": "layoutName",
"leadingComments": null
},
"value": {
"type": "MemberExpression",
"start": 571,
"end": 586,
"loc": {
"start": {
"line": 30,
"column": 18
},
"end": {
"line": 30,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 571,
"end": 575,
"loc": {
"start": {
"line": 30,
"column": 18
},
"end": {
"line": 30,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"start": 576,
"end": 586,
"loc": {
"start": {
"line": 30,
"column": 23
},
"end": {
"line": 30,
"column": 33
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"computed": false
},
"leadingComments": [
{
"type": "CommentLine",
"value": "debug: true,",
"start": 537,
"end": 551,
"loc": {
"start": {
"line": 29,
"column": 6
},
"end": {
"line": 29,
"column": 20
}
}
}
]
},
{
"type": "ObjectProperty",
"start": 595,
"end": 634,
"loc": {
"start": {
"line": 31,
"column": 6
},
"end": {
"line": 31,
"column": 45
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 595,
"end": 603,
"loc": {
"start": {
"line": 31,
"column": 6
},
"end": {
"line": 31,
"column": 14
},
"identifierName": "onChange"
},
"name": "onChange"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 605,
"end": 634,
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 45
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 605,
"end": 610,
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 21
},
"identifierName": "input"
},
"name": "input"
}
],
"body": {
"type": "CallExpression",
"start": 614,
"end": 634,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 614,
"end": 627,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 38
}
},
"object": {
"type": "ThisExpression",
"start": 614,
"end": 618,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 619,
"end": 627,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 38
},
"identifierName": "onChange"
},
"name": "onChange"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 628,
"end": 633,
"loc": {
"start": {
"line": 31,
"column": 39
},
"end": {
"line": 31,
"column": 44
},
"identifierName": "input"
},
"name": "input"
}
]
}
}
},
{
"type": "ObjectProperty",
"start": 643,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 6
},
"end": {
"line": 32,
"column": 51
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 643,
"end": 653,
"loc": {
"start": {
"line": 32,
"column": 6
},
"end": {
"line": 32,
"column": 16
},
"identifierName": "onKeyPress"
},
"name": "onKeyPress"
},
"value": {
"type": "ArrowFunctionExpression",
"start": 655,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 18
},
"end": {
"line": 32,
"column": 51
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 655,
"end": 661,
"loc": {
"start": {
"line": 32,
"column": 18
},
"end": {
"line": 32,
"column": 24
},
"identifierName": "button"
},
"name": "button"
}
],
"body": {
"type": "CallExpression",
"start": 665,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 28
},
"end": {
"line": 32,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 665,
"end": 680,
"loc": {
"start": {
"line": 32,
"column": 28
},
"end": {
"line": 32,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 665,
"end": 669,
"loc": {
"start": {
"line": 32,
"column": 28
},
"end": {
"line": 32,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 670,
"end": 680,
"loc": {
"start": {
"line": 32,
"column": 33
},
"end": {
"line": 32,
"column": 43
},
"identifierName": "onKeyPress"
},
"name": "onKeyPress"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 681,
"end": 687,
"loc": {
"start": {
"line": 32,
"column": 44
},
"end": {
"line": 32,
"column": 50
},
"identifierName": "button"
},
"name": "button"
}
]
}
}
},
{
"type": "ObjectProperty",
"start": 697,
"end": 717,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 26
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 697,
"end": 711,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 20
},
"identifierName": "newLineOnEnter"
},
"name": "newLineOnEnter"
},
"value": {
"type": "BooleanLiteral",
"start": 713,
"end": 717,
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 26
}
},
"value": true
}
},
{
"type": "ObjectProperty",
"start": 726,
"end": 757,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 726,
"end": 751,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 31
},
"identifierName": "physicalKeyboardHighlight"
},
"name": "physicalKeyboardHighlight"
},
"value": {
"type": "BooleanLiteral",
"start": 753,
"end": 757,
"loc": {
"start": {
"line": 34,
"column": 33
},
"end": {
"line": 34,
"column": 37
}
},
"value": true
}
}
]
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Creates a new simple-keyboard instance\r\n ",
"start": 434,
"end": 493,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 27,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Adding preview (demo only)\r\n ",
"start": 777,
"end": 824,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 39,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 830,
"end": 1015,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 44,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 830,
"end": 1014,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 44,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 830,
"end": 891,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 65
}
},
"object": {
"type": "CallExpression",
"start": 830,
"end": 872,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 830,
"end": 852,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 830,
"end": 838,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 12
},
"identifierName": "document"
},
"name": "document",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 839,
"end": 852,
"loc": {
"start": {
"line": 40,
"column": 13
},
"end": {
"line": 40,
"column": 26
},
"identifierName": "querySelector"
},
"name": "querySelector"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 853,
"end": 871,
"loc": {
"start": {
"line": 40,
"column": 27
},
"end": {
"line": 40,
"column": 45
}
},
"extra": {
"rawValue": ".simple-keyboard",
"raw": "'.simple-keyboard'"
},
"value": ".simple-keyboard"
}
],
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 873,
"end": 891,
"loc": {
"start": {
"line": 40,
"column": 47
},
"end": {
"line": 40,
"column": 65
},
"identifierName": "insertAdjacentHTML"
},
"name": "insertAdjacentHTML"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "StringLiteral",
"start": 892,
"end": 905,
"loc": {
"start": {
"line": 40,
"column": 66
},
"end": {
"line": 40,
"column": 79
}
},
"extra": {
"rawValue": "beforebegin",
"raw": "'beforebegin'"
},
"value": "beforebegin"
},
{
"type": "TemplateLiteral",
"start": 907,
"end": 1013,
"loc": {
"start": {
"line": 40,
"column": 81
},
"end": {
"line": 44,
"column": 5
}
},
"expressions": [],
"quasis": [
{
"type": "TemplateElement",
"start": 908,
"end": 1012,
"loc": {
"start": {
"line": 40,
"column": 82
},
"end": {
"line": 44,
"column": 4
}
},
"value": {
"raw": "\n <div class=\"simple-keyboard-preview\">\n <textarea class=\"input\"></textarea>\n </div>\n ",
"cooked": "\n <div class=\"simple-keyboard-preview\">\n <textarea class=\"input\"></textarea>\n </div>\n "
},
"tail": true
}
]
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Adding preview (demo only)\r\n ",
"start": 777,
"end": 824,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 39,
"column": 7
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1025,
"end": 1157,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 48,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 1025,
"end": 1156,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 48,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 1025,
"end": 1074,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 53
}
},
"object": {
"type": "CallExpression",
"start": 1025,
"end": 1057,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 1025,
"end": 1047,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 1025,
"end": 1033,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 12
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 1034,
"end": 1047,
"loc": {
"start": {
"line": 46,
"column": 13
},
"end": {
"line": 46,
"column": 26
},
"identifierName": "querySelector"
},
"name": "querySelector"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1048,
"end": 1056,
"loc": {
"start": {
"line": 46,
"column": 27
},
"end": {
"line": 46,
"column": 35
}
},
"extra": {
"rawValue": ".input",
"raw": "'.input'"
},
"value": ".input"
}
]
},
"property": {
"type": "Identifier",
"start": 1058,
"end": 1074,
"loc": {
"start": {
"line": 46,
"column": 37
},
"end": {
"line": 46,
"column": 53
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1075,
"end": 1083,
"loc": {
"start": {
"line": 46,
"column": 54
},
"end": {
"line": 46,
"column": 62
}
},
"extra": {
"rawValue": "change",
"raw": "'change'"
},
"value": "change"
},
{
"type": "ArrowFunctionExpression",
"start": 1085,
"end": 1155,
"loc": {
"start": {
"line": 46,
"column": 64
},
"end": {
"line": 48,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1086,
"end": 1091,
"loc": {
"start": {
"line": 46,
"column": 65
},
"end": {
"line": 46,
"column": 70
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 1096,
"end": 1155,
"loc": {
"start": {
"line": 46,
"column": 75
},
"end": {
"line": 48,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1105,
"end": 1148,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 49
}
},
"expression": {
"type": "CallExpression",
"start": 1105,
"end": 1147,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 1105,
"end": 1127,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 1105,
"end": 1118,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 1105,
"end": 1109,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 1110,
"end": 1118,
"loc": {
"start": {
"line": 47,
"column": 11
},
"end": {
"line": 47,
"column": 19
},
"identifierName": "keyboard"
},
"name": "keyboard"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1119,
"end": 1127,
"loc": {
"start": {
"line": 47,
"column": 20
},
"end": {
"line": 47,
"column": 28
},
"identifierName": "setInput"
},
"name": "setInput"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 1128,
"end": 1146,
"loc": {
"start": {
"line": 47,
"column": 29
},
"end": {
"line": 47,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 1128,
"end": 1140,
"loc": {
"start": {
"line": 47,
"column": 29
},
"end": {
"line": 47,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 1128,
"end": 1133,
"loc": {
"start": {
"line": 47,
"column": 29
},
"end": {
"line": 47,
"column": 34
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 1134,
"end": 1140,
"loc": {
"start": {
"line": 47,
"column": 35
},
"end": {
"line": 47,
"column": 41
},
"identifierName": "target"
},
"name": "target"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1141,
"end": 1146,
"loc": {
"start": {
"line": 47,
"column": 42
},
"end": {
"line": 47,
"column": 47
},
"identifierName": "value"
},
"name": "value"
},
"computed": false
}
]
}
}
],
"directives": []
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Executed when the DOM is ready\r\n ",
"start": 356,
"end": 403,
"loc": {
"start": {
"line": 21,
"column": 2
},
"end": {
"line": 23,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Handles shift functionality\r\n ",
"start": 1168,
"end": 1212,
"loc": {
"start": {
"line": 51,
"column": 2
},
"end": {
"line": 53,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 1216,
"end": 1452,
"loc": {
"start": {
"line": 54,
"column": 2
},
"end": {
"line": 61,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1216,
"end": 1233,
"loc": {
"start": {
"line": 54,
"column": 2
},
"end": {
"line": 54,
"column": 19
},
"identifierName": "handleShiftButton"
},
"name": "handleShiftButton",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 1236,
"end": 1452,
"loc": {
"start": {
"line": 54,
"column": 22
},
"end": {
"line": 61,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1242,
"end": 1452,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 61,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1249,
"end": 1282,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 37
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1253,
"end": 1281,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 36
}
},
"id": {
"type": "Identifier",
"start": 1253,
"end": 1263,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 18
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"init": {
"type": "MemberExpression",
"start": 1266,
"end": 1281,
"loc": {
"start": {
"line": 55,
"column": 21
},
"end": {
"line": 55,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1266,
"end": 1270,
"loc": {
"start": {
"line": 55,
"column": 21
},
"end": {
"line": 55,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"start": 1271,
"end": 1281,
"loc": {
"start": {
"line": 55,
"column": 26
},
"end": {
"line": 55,
"column": 36
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"computed": false
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 1288,
"end": 1371,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 56,
"column": 87
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1292,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 86
}
},
"id": {
"type": "Identifier",
"start": 1292,
"end": 1303,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 19
},
"identifierName": "shiftToggle"
},
"name": "shiftToggle"
},
"init": {
"type": "AssignmentExpression",
"start": 1306,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 22
},
"end": {
"line": 56,
"column": 86
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1306,
"end": 1321,
"loc": {
"start": {
"line": 56,
"column": 22
},
"end": {
"line": 56,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 1306,
"end": 1310,
"loc": {
"start": {
"line": 56,
"column": 22
},
"end": {
"line": 56,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 1311,
"end": 1321,
"loc": {
"start": {
"line": 56,
"column": 27
},
"end": {
"line": 56,
"column": 37
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"computed": false
},
"right": {
"type": "ConditionalExpression",
"start": 1324,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 40
},
"end": {
"line": 56,
"column": 86
}
},
"test": {
"type": "BinaryExpression",
"start": 1324,
"end": 1348,
"loc": {
"start": {
"line": 56,
"column": 40
},
"end": {
"line": 56,
"column": 64
}
},
"left": {
"type": "Identifier",
"start": 1324,
"end": 1334,
"loc": {
"start": {
"line": 56,
"column": 40
},
"end": {
"line": 56,
"column": 50
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 1339,
"end": 1348,
"loc": {
"start": {
"line": 56,
"column": 55
},
"end": {
"line": 56,
"column": 64
}
},
"extra": {
"rawValue": "default",
"raw": "\"default\""
},
"value": "default"
}
},
"consequent": {
"type": "StringLiteral",
"start": 1351,
"end": 1358,
"loc": {
"start": {
"line": 56,
"column": 67
},
"end": {
"line": 56,
"column": 74
}
},
"extra": {
"rawValue": "shift",
"raw": "\"shift\""
},
"value": "shift"
},
"alternate": {
"type": "StringLiteral",
"start": 1361,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 77
},
"end": {
"line": 56,
"column": 86
}
},
"extra": {
"rawValue": "default",
"raw": "\"default\""
},
"value": "default"
}
}
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 1381,
"end": 1447,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 60,
"column": 7
}
},
"expression": {
"type": "CallExpression",
"start": 1381,
"end": 1446,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 60,
"column": 6
}
},
"callee": {
"type": "MemberExpression",
"start": 1381,
"end": 1405,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 1381,
"end": 1394,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 1381,
"end": 1385,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 1386,
"end": 1394,
"loc": {
"start": {
"line": 58,
"column": 9
},
"end": {
"line": 58,
"column": 17
},
"identifierName": "keyboard"
},
"name": "keyboard"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1395,
"end": 1405,
"loc": {
"start": {
"line": 58,
"column": 18
},
"end": {
"line": 58,
"column": 28
},
"identifierName": "setOptions"
},
"name": "setOptions"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 1406,
"end": 1445,
"loc": {
"start": {
"line": 58,
"column": 29
},
"end": {
"line": 60,
"column": 5
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1415,
"end": 1438,
"loc": {
"start": {
"line": 59,
"column": 6
},
"end": {
"line": 59,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1415,
"end": 1425,
"loc": {
"start": {
"line": 59,
"column": 6
},
"end": {
"line": 59,
"column": 16
},
"identifierName": "layoutName"
},
"name": "layoutName"
},
"value": {
"type": "Identifier",
"start": 1427,
"end": 1438,
"loc": {
"start": {
"line": 59,
"column": 18
},
"end": {
"line": 59,
"column": 29
},
"identifierName": "shiftToggle"
},
"name": "shiftToggle"
}
}
]
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Handles shift functionality\r\n ",
"start": 1168,
"end": 1212,
"loc": {
"start": {
"line": 51,
"column": 2
},
"end": {
"line": 53,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Called when simple-keyboard input has changed\r\n ",
"start": 1458,
"end": 1520,
"loc": {
"start": {
"line": 63,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 1524,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 68,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1524,
"end": 1532,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 66,
"column": 10
},
"identifierName": "onChange"
},
"name": "onChange",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 1535,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 68,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1535,
"end": 1540,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 18
},
"identifierName": "input"
},
"name": "input"
}
],
"body": {
"type": "BlockStatement",
"start": 1544,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 22
},
"end": {
"line": 68,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1551,
"end": 1598,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 51
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1551,
"end": 1597,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 50
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1551,
"end": 1589,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 42
}
},
"object": {
"type": "CallExpression",
"start": 1551,
"end": 1583,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 1551,
"end": 1573,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 1551,
"end": 1559,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 12
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 1560,
"end": 1573,
"loc": {
"start": {
"line": 67,
"column": 13
},
"end": {
"line": 67,
"column": 26
},
"identifierName": "querySelector"
},
"name": "querySelector"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1574,
"end": 1582,
"loc": {
"start": {
"line": 67,
"column": 27
},
"end": {
"line": 67,
"column": 35
}
},
"extra": {
"rawValue": ".input",
"raw": "'.input'"
},
"value": ".input"
}
]
},
"property": {
"type": "Identifier",
"start": 1584,
"end": 1589,
"loc": {
"start": {
"line": 67,
"column": 37
},
"end": {
"line": 67,
"column": 42
},
"identifierName": "value"
},
"name": "value"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1592,
"end": 1597,
"loc": {
"start": {
"line": 67,
"column": 45
},
"end": {
"line": 67,
"column": 50
},
"identifierName": "input"
},
"name": "input"
}
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Called when simple-keyboard input has changed\r\n ",
"start": 1458,
"end": 1520,
"loc": {
"start": {
"line": 63,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ",
"start": 1609,
"end": 1670,
"loc": {
"start": {
"line": 70,
"column": 2
},
"end": {
"line": 72,
"column": 5
}
}
}
]
},
{
"type": "ClassProperty",
"start": 1674,
"end": 1893,
"loc": {
"start": {
"line": 73,
"column": 2
},
"end": {
"line": 81,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1674,
"end": 1684,
"loc": {
"start": {
"line": 73,
"column": 2
},
"end": {
"line": 73,
"column": 12
},
"identifierName": "onKeyPress"
},
"name": "onKeyPress",
"leadingComments": null
},
"value": {
"type": "ArrowFunctionExpression",
"start": 1687,
"end": 1893,
"loc": {
"start": {
"line": 73,
"column": 15
},
"end": {
"line": 81,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1687,
"end": 1693,
"loc": {
"start": {
"line": 73,
"column": 15
},
"end": {
"line": 73,
"column": 21
},
"identifierName": "button"
},
"name": "button"
}
],
"body": {
"type": "BlockStatement",
"start": 1697,
"end": 1893,
"loc": {
"start": {
"line": 73,
"column": 25
},
"end": {
"line": 81,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1704,
"end": 1742,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 42
}
},
"expression": {
"type": "CallExpression",
"start": 1704,
"end": 1741,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 1704,
"end": 1715,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 1704,
"end": 1711,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 11
},
"identifierName": "console"
},
"name": "console"
},
"property": {
"type": "Identifier",
"start": 1712,
"end": 1715,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 15
},
"identifierName": "log"
},
"name": "log"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 1716,
"end": 1732,
"loc": {
"start": {
"line": 74,
"column": 16
},
"end": {
"line": 74,
"column": 32
}
},
"extra": {
"rawValue": "Button pressed",
"raw": "\"Button pressed\""
},
"value": "Button pressed"
},
{
"type": "Identifier",
"start": 1734,
"end": 1740,
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 40
},
"identifierName": "button"
},
"name": "button"
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Shift functionality\r\n ",
"start": 1754,
"end": 1798,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 78,
"column": 9
}
}
}
]
},
{
"type": "IfStatement",
"start": 1806,
"end": 1888,
"loc": {
"start": {
"line": 79,
"column": 6
},
"end": {
"line": 80,
"column": 33
}
},
"test": {
"type": "LogicalExpression",
"start": 1809,
"end": 1852,
"loc": {
"start": {
"line": 79,
"column": 9
},
"end": {
"line": 79,
"column": 52
}
},
"left": {
"type": "BinaryExpression",
"start": 1809,
"end": 1828,
"loc": {
"start": {
"line": 79,
"column": 9
},
"end": {
"line": 79,
"column": 28
}
},
"left": {
"type": "Identifier",
"start": 1809,
"end": 1815,
"loc": {
"start": {
"line": 79,
"column": 9
},
"end": {
"line": 79,
"column": 15
},
"identifierName": "button"
},
"name": "button",
"leadingComments": null
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 1820,
"end": 1828,
"loc": {
"start": {
"line": 79,
"column": 20
},
"end": {
"line": 79,
"column": 28
}
},
"extra": {
"rawValue": "{lock}",
"raw": "\"{lock}\""
},
"value": "{lock}"
},
"leadingComments": null
},
"operator": "||",
"right": {
"type": "BinaryExpression",
"start": 1832,
"end": 1852,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 52
}
},
"left": {
"type": "Identifier",
"start": 1832,
"end": 1838,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 38
},
"identifierName": "button"
},
"name": "button"
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 1843,
"end": 1852,
"loc": {
"start": {
"line": 79,
"column": 43
},
"end": {
"line": 79,
"column": 52
}
},
"extra": {
"rawValue": "{shift}",
"raw": "\"{shift}\""
},
"value": "{shift}"
}
},
"leadingComments": null
},
"consequent": {
"type": "ExpressionStatement",
"start": 1863,
"end": 1888,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 33
}
},
"expression": {
"type": "CallExpression",
"start": 1863,
"end": 1887,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 1863,
"end": 1885,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 1863,
"end": 1867,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1868,
"end": 1885,
"loc": {
"start": {
"line": 80,
"column": 13
},
"end": {
"line": 80,
"column": 30
},
"identifierName": "handleShiftButton"
},
"name": "handleShiftButton"
},
"computed": false
},
"arguments": []
}
},
"alternate": null,
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Shift functionality\r\n ",
"start": 1754,
"end": 1798,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 78,
"column": 9
}
}
}
]
}
],
"directives": []
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ",
"start": 1609,
"end": 1670,
"loc": {
"start": {
"line": 70,
"column": 2
},
"end": {
"line": 72,
"column": 5
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * simple-keyboard demo\r\n ",
"start": 59,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
}
],
"__PseudoExport__": false,
"trailingComments": []
},
"leadingComments": null
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * simple-keyboard demo\r\n ",
"start": 59,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Instantiates the demo class\r\n ",
"start": 109,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 10,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Default input name\r\n * @type {string}\r\n ",
"start": 249,
"end": 311,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 17,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Executed when the DOM is ready\r\n ",
"start": 356,
"end": 403,
"loc": {
"start": {
"line": 21,
"column": 2
},
"end": {
"line": 23,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Creates a new simple-keyboard instance\r\n ",
"start": 434,
"end": 493,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 27,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": "debug: true,",
"start": 537,
"end": 551,
"loc": {
"start": {
"line": 29,
"column": 6
},
"end": {
"line": 29,
"column": 20
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Adding preview (demo only)\r\n ",
"start": 777,
"end": 824,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 39,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Handles shift functionality\r\n ",
"start": 1168,
"end": 1212,
"loc": {
"start": {
"line": 51,
"column": 2
},
"end": {
"line": 53,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Called when simple-keyboard input has changed\r\n ",
"start": 1458,
"end": 1520,
"loc": {
"start": {
"line": 63,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ",
"start": 1609,
"end": 1670,
"loc": {
"start": {
"line": 70,
"column": 2
},
"end": {
"line": 72,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Shift functionality\r\n ",
"start": 1754,
"end": 1798,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 78,
"column": 9
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Keyboard",
"start": 7,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 16,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 20
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../lib",
"start": 21,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 29,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 30
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 32,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./css/App.css",
"start": 39,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 54,
"end": 55,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 23
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * simple-keyboard demo\r\n ",
"start": 59,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"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": 94,
"end": 99,
"loc": {
"start": {
"line": 7,
"column": 0
},
"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": "App",
"start": 100,
"end": 103,
"loc": {
"start": {
"line": 7,
"column": 6
},
"end": {
"line": 7,
"column": 9
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 104,
"end": 105,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 7,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Instantiates the demo class\r\n ",
"start": 109,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 10,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 157,
"end": 168,
"loc": {
"start": {
"line": 11,
"column": 2
},
"end": {
"line": 11,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 168,
"end": 169,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 169,
"end": 170,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 170,
"end": 171,
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 11,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 177,
"end": 185,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 185,
"end": 186,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEventListener",
"start": 186,
"end": 202,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 202,
"end": 203,
"loc": {
"start": {
"line": 12,
"column": 29
},
"end": {
"line": 12,
"column": 30
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "DOMContentLoaded",
"start": 203,
"end": 221,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 48
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 221,
"end": 222,
"loc": {
"start": {
"line": 12,
"column": 48
},
"end": {
"line": 12,
"column": 49
}
}
},
{
"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": 223,
"end": 227,
"loc": {
"start": {
"line": 12,
"column": 50
},
"end": {
"line": 12,
"column": 54
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 227,
"end": 228,
"loc": {
"start": {
"line": 12,
"column": 54
},
"end": {
"line": 12,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onDOMLoaded",
"start": 228,
"end": 239,
"loc": {
"start": {
"line": 12,
"column": 55
},
"end": {
"line": 12,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 239,
"end": 240,
"loc": {
"start": {
"line": 12,
"column": 66
},
"end": {
"line": 12,
"column": 67
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 240,
"end": 241,
"loc": {
"start": {
"line": 12,
"column": 67
},
"end": {
"line": 12,
"column": 68
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Default input name\r\n * @type {string}\r\n ",
"start": 249,
"end": 311,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 17,
"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": 317,
"end": 321,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 321,
"end": 322,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layoutName",
"start": 322,
"end": 332,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 333,
"end": 334,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 21
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 335,
"end": 344,
"loc": {
"start": {
"line": 18,
"column": 22
},
"end": {
"line": 18,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 344,
"end": 345,
"loc": {
"start": {
"line": 18,
"column": 31
},
"end": {
"line": 18,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 349,
"end": 350,
"loc": {
"start": {
"line": 19,
"column": 2
},
"end": {
"line": 19,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Executed when the DOM is ready\r\n ",
"start": 356,
"end": 403,
"loc": {
"start": {
"line": 21,
"column": 2
},
"end": {
"line": 23,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onDOMLoaded",
"start": 407,
"end": 418,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 419,
"end": 420,
"loc": {
"start": {
"line": 24,
"column": 14
},
"end": {
"line": 24,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 421,
"end": 422,
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 24,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 422,
"end": 423,
"loc": {
"start": {
"line": 24,
"column": 17
},
"end": {
"line": 24,
"column": 18
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 424,
"end": 426,
"loc": {
"start": {
"line": 24,
"column": 19
},
"end": {
"line": 24,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 427,
"end": 428,
"loc": {
"start": {
"line": 24,
"column": 22
},
"end": {
"line": 24,
"column": 23
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Creates a new simple-keyboard instance\r\n ",
"start": 434,
"end": 493,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 27,
"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": 499,
"end": 503,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 28,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 503,
"end": 504,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyboard",
"start": 504,
"end": 512,
"loc": {
"start": {
"line": 28,
"column": 9
},
"end": {
"line": 28,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 513,
"end": 514,
"loc": {
"start": {
"line": 28,
"column": 18
},
"end": {
"line": 28,
"column": 19
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 515,
"end": 518,
"loc": {
"start": {
"line": 28,
"column": 20
},
"end": {
"line": 28,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Keyboard",
"start": 519,
"end": 527,
"loc": {
"start": {
"line": 28,
"column": 24
},
"end": {
"line": 28,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 527,
"end": 528,
"loc": {
"start": {
"line": 28,
"column": 32
},
"end": {
"line": 28,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 528,
"end": 529,
"loc": {
"start": {
"line": 28,
"column": 33
},
"end": {
"line": 28,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": "debug: true,",
"start": 537,
"end": 551,
"loc": {
"start": {
"line": 29,
"column": 6
},
"end": {
"line": 29,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layoutName",
"start": 559,
"end": 569,
"loc": {
"start": {
"line": 30,
"column": 6
},
"end": {
"line": 30,
"column": 16
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 569,
"end": 570,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 17
}
}
},
{
"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": 571,
"end": 575,
"loc": {
"start": {
"line": 30,
"column": 18
},
"end": {
"line": 30,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 575,
"end": 576,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layoutName",
"start": 576,
"end": 586,
"loc": {
"start": {
"line": 30,
"column": 23
},
"end": {
"line": 30,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 586,
"end": 587,
"loc": {
"start": {
"line": 30,
"column": 33
},
"end": {
"line": 30,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onChange",
"start": 595,
"end": 603,
"loc": {
"start": {
"line": 31,
"column": 6
},
"end": {
"line": 31,
"column": 14
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 603,
"end": 604,
"loc": {
"start": {
"line": 31,
"column": 14
},
"end": {
"line": 31,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "input",
"start": 605,
"end": 610,
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 21
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 611,
"end": 613,
"loc": {
"start": {
"line": 31,
"column": 22
},
"end": {
"line": 31,
"column": 24
}
}
},
{
"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": 614,
"end": 618,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 618,
"end": 619,
"loc": {
"start": {
"line": 31,
"column": 29
},
"end": {
"line": 31,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onChange",
"start": 619,
"end": 627,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 38
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 627,
"end": 628,
"loc": {
"start": {
"line": 31,
"column": 38
},
"end": {
"line": 31,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "input",
"start": 628,
"end": 633,
"loc": {
"start": {
"line": 31,
"column": 39
},
"end": {
"line": 31,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 633,
"end": 634,
"loc": {
"start": {
"line": 31,
"column": 44
},
"end": {
"line": 31,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 634,
"end": 635,
"loc": {
"start": {
"line": 31,
"column": 45
},
"end": {
"line": 31,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onKeyPress",
"start": 643,
"end": 653,
"loc": {
"start": {
"line": 32,
"column": 6
},
"end": {
"line": 32,
"column": 16
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 653,
"end": 654,
"loc": {
"start": {
"line": 32,
"column": 16
},
"end": {
"line": 32,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "button",
"start": 655,
"end": 661,
"loc": {
"start": {
"line": 32,
"column": 18
},
"end": {
"line": 32,
"column": 24
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 662,
"end": 664,
"loc": {
"start": {
"line": 32,
"column": 25
},
"end": {
"line": 32,
"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": 665,
"end": 669,
"loc": {
"start": {
"line": 32,
"column": 28
},
"end": {
"line": 32,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 669,
"end": 670,
"loc": {
"start": {
"line": 32,
"column": 32
},
"end": {
"line": 32,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onKeyPress",
"start": 670,
"end": 680,
"loc": {
"start": {
"line": 32,
"column": 33
},
"end": {
"line": 32,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 680,
"end": 681,
"loc": {
"start": {
"line": 32,
"column": 43
},
"end": {
"line": 32,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "button",
"start": 681,
"end": 687,
"loc": {
"start": {
"line": 32,
"column": 44
},
"end": {
"line": 32,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 687,
"end": 688,
"loc": {
"start": {
"line": 32,
"column": 50
},
"end": {
"line": 32,
"column": 51
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 688,
"end": 689,
"loc": {
"start": {
"line": 32,
"column": 51
},
"end": {
"line": 32,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newLineOnEnter",
"start": 697,
"end": 711,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 20
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 711,
"end": 712,
"loc": {
"start": {
"line": 33,
"column": 20
},
"end": {
"line": 33,
"column": 21
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 713,
"end": 717,
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 717,
"end": 718,
"loc": {
"start": {
"line": 33,
"column": 26
},
"end": {
"line": 33,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "physicalKeyboardHighlight",
"start": 726,
"end": 751,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 31
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 751,
"end": 752,
"loc": {
"start": {
"line": 34,
"column": 31
},
"end": {
"line": 34,
"column": 32
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 753,
"end": 757,
"loc": {
"start": {
"line": 34,
"column": 33
},
"end": {
"line": 34,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 757,
"end": 758,
"loc": {
"start": {
"line": 34,
"column": 37
},
"end": {
"line": 34,
"column": 38
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 764,
"end": 765,
"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": 765,
"end": 766,
"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": 766,
"end": 767,
"loc": {
"start": {
"line": 35,
"column": 6
},
"end": {
"line": 35,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Adding preview (demo only)\r\n ",
"start": 777,
"end": 824,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 39,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 830,
"end": 838,
"loc": {
"start": {
"line": 40,
"column": 4
},
"end": {
"line": 40,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 838,
"end": 839,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "querySelector",
"start": 839,
"end": 852,
"loc": {
"start": {
"line": 40,
"column": 13
},
"end": {
"line": 40,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 852,
"end": 853,
"loc": {
"start": {
"line": 40,
"column": 26
},
"end": {
"line": 40,
"column": 27
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": ".simple-keyboard",
"start": 853,
"end": 871,
"loc": {
"start": {
"line": 40,
"column": 27
},
"end": {
"line": 40,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 871,
"end": 872,
"loc": {
"start": {
"line": 40,
"column": 45
},
"end": {
"line": 40,
"column": 46
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 872,
"end": 873,
"loc": {
"start": {
"line": 40,
"column": 46
},
"end": {
"line": 40,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "insertAdjacentHTML",
"start": 873,
"end": 891,
"loc": {
"start": {
"line": 40,
"column": 47
},
"end": {
"line": 40,
"column": 65
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 891,
"end": 892,
"loc": {
"start": {
"line": 40,
"column": 65
},
"end": {
"line": 40,
"column": 66
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "beforebegin",
"start": 892,
"end": 905,
"loc": {
"start": {
"line": 40,
"column": 66
},
"end": {
"line": 40,
"column": 79
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 905,
"end": 906,
"loc": {
"start": {
"line": 40,
"column": 79
},
"end": {
"line": 40,
"column": 80
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 907,
"end": 908,
"loc": {
"start": {
"line": 40,
"column": 81
},
"end": {
"line": 40,
"column": 82
}
}
},
{
"type": {
"label": "template",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "\n <div class=\"simple-keyboard-preview\">\n <textarea class=\"input\"></textarea>\n </div>\n ",
"start": 908,
"end": 1012,
"loc": {
"start": {
"line": 40,
"column": 82
},
"end": {
"line": 44,
"column": 4
}
}
},
{
"type": {
"label": "`",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1012,
"end": 1013,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1013,
"end": 1014,
"loc": {
"start": {
"line": 44,
"column": 5
},
"end": {
"line": 44,
"column": 6
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1014,
"end": 1015,
"loc": {
"start": {
"line": 44,
"column": 6
},
"end": {
"line": 44,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 1025,
"end": 1033,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1033,
"end": 1034,
"loc": {
"start": {
"line": 46,
"column": 12
},
"end": {
"line": 46,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "querySelector",
"start": 1034,
"end": 1047,
"loc": {
"start": {
"line": 46,
"column": 13
},
"end": {
"line": 46,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1047,
"end": 1048,
"loc": {
"start": {
"line": 46,
"column": 26
},
"end": {
"line": 46,
"column": 27
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": ".input",
"start": 1048,
"end": 1056,
"loc": {
"start": {
"line": 46,
"column": 27
},
"end": {
"line": 46,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1056,
"end": 1057,
"loc": {
"start": {
"line": 46,
"column": 35
},
"end": {
"line": 46,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1057,
"end": 1058,
"loc": {
"start": {
"line": 46,
"column": 36
},
"end": {
"line": 46,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEventListener",
"start": 1058,
"end": 1074,
"loc": {
"start": {
"line": 46,
"column": 37
},
"end": {
"line": 46,
"column": 53
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1074,
"end": 1075,
"loc": {
"start": {
"line": 46,
"column": 53
},
"end": {
"line": 46,
"column": 54
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "change",
"start": 1075,
"end": 1083,
"loc": {
"start": {
"line": 46,
"column": 54
},
"end": {
"line": 46,
"column": 62
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1083,
"end": 1084,
"loc": {
"start": {
"line": 46,
"column": 62
},
"end": {
"line": 46,
"column": 63
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1085,
"end": 1086,
"loc": {
"start": {
"line": 46,
"column": 64
},
"end": {
"line": 46,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1086,
"end": 1091,
"loc": {
"start": {
"line": 46,
"column": 65
},
"end": {
"line": 46,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1091,
"end": 1092,
"loc": {
"start": {
"line": 46,
"column": 70
},
"end": {
"line": 46,
"column": 71
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1093,
"end": 1095,
"loc": {
"start": {
"line": 46,
"column": 72
},
"end": {
"line": 46,
"column": 74
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1096,
"end": 1097,
"loc": {
"start": {
"line": 46,
"column": 75
},
"end": {
"line": 46,
"column": 76
}
}
},
{
"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": 1105,
"end": 1109,
"loc": {
"start": {
"line": 47,
"column": 6
},
"end": {
"line": 47,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1109,
"end": 1110,
"loc": {
"start": {
"line": 47,
"column": 10
},
"end": {
"line": 47,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyboard",
"start": 1110,
"end": 1118,
"loc": {
"start": {
"line": 47,
"column": 11
},
"end": {
"line": 47,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1118,
"end": 1119,
"loc": {
"start": {
"line": 47,
"column": 19
},
"end": {
"line": 47,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setInput",
"start": 1119,
"end": 1127,
"loc": {
"start": {
"line": 47,
"column": 20
},
"end": {
"line": 47,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1127,
"end": 1128,
"loc": {
"start": {
"line": 47,
"column": 28
},
"end": {
"line": 47,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1128,
"end": 1133,
"loc": {
"start": {
"line": 47,
"column": 29
},
"end": {
"line": 47,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1133,
"end": 1134,
"loc": {
"start": {
"line": 47,
"column": 34
},
"end": {
"line": 47,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "target",
"start": 1134,
"end": 1140,
"loc": {
"start": {
"line": 47,
"column": 35
},
"end": {
"line": 47,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1140,
"end": 1141,
"loc": {
"start": {
"line": 47,
"column": 41
},
"end": {
"line": 47,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 1141,
"end": 1146,
"loc": {
"start": {
"line": 47,
"column": 42
},
"end": {
"line": 47,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1146,
"end": 1147,
"loc": {
"start": {
"line": 47,
"column": 47
},
"end": {
"line": 47,
"column": 48
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1147,
"end": 1148,
"loc": {
"start": {
"line": 47,
"column": 48
},
"end": {
"line": 47,
"column": 49
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1154,
"end": 1155,
"loc": {
"start": {
"line": 48,
"column": 4
},
"end": {
"line": 48,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1155,
"end": 1156,
"loc": {
"start": {
"line": 48,
"column": 5
},
"end": {
"line": 48,
"column": 6
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1156,
"end": 1157,
"loc": {
"start": {
"line": 48,
"column": 6
},
"end": {
"line": 48,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1161,
"end": 1162,
"loc": {
"start": {
"line": 49,
"column": 2
},
"end": {
"line": 49,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Handles shift functionality\r\n ",
"start": 1168,
"end": 1212,
"loc": {
"start": {
"line": 51,
"column": 2
},
"end": {
"line": 53,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "handleShiftButton",
"start": 1216,
"end": 1233,
"loc": {
"start": {
"line": 54,
"column": 2
},
"end": {
"line": 54,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1234,
"end": 1235,
"loc": {
"start": {
"line": 54,
"column": 20
},
"end": {
"line": 54,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1236,
"end": 1237,
"loc": {
"start": {
"line": 54,
"column": 22
},
"end": {
"line": 54,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1237,
"end": 1238,
"loc": {
"start": {
"line": 54,
"column": 23
},
"end": {
"line": 54,
"column": 24
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1239,
"end": 1241,
"loc": {
"start": {
"line": 54,
"column": 25
},
"end": {
"line": 54,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1242,
"end": 1243,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 54,
"column": 29
}
}
},
{
"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": 1249,
"end": 1252,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layoutName",
"start": 1253,
"end": 1263,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1264,
"end": 1265,
"loc": {
"start": {
"line": 55,
"column": 19
},
"end": {
"line": 55,
"column": 20
}
}
},
{
"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": 1266,
"end": 1270,
"loc": {
"start": {
"line": 55,
"column": 21
},
"end": {
"line": 55,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1270,
"end": 1271,
"loc": {
"start": {
"line": 55,
"column": 25
},
"end": {
"line": 55,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layoutName",
"start": 1271,
"end": 1281,
"loc": {
"start": {
"line": 55,
"column": 26
},
"end": {
"line": 55,
"column": 36
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1281,
"end": 1282,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 37
}
}
},
{
"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": 1288,
"end": 1291,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 56,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "shiftToggle",
"start": 1292,
"end": 1303,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1304,
"end": 1305,
"loc": {
"start": {
"line": 56,
"column": 20
},
"end": {
"line": 56,
"column": 21
}
}
},
{
"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": 1306,
"end": 1310,
"loc": {
"start": {
"line": 56,
"column": 22
},
"end": {
"line": 56,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1310,
"end": 1311,
"loc": {
"start": {
"line": 56,
"column": 26
},
"end": {
"line": 56,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layoutName",
"start": 1311,
"end": 1321,
"loc": {
"start": {
"line": 56,
"column": 27
},
"end": {
"line": 56,
"column": 37
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1322,
"end": 1323,
"loc": {
"start": {
"line": 56,
"column": 38
},
"end": {
"line": 56,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layoutName",
"start": 1324,
"end": 1334,
"loc": {
"start": {
"line": 56,
"column": 40
},
"end": {
"line": 56,
"column": 50
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 1335,
"end": 1338,
"loc": {
"start": {
"line": 56,
"column": 51
},
"end": {
"line": 56,
"column": 54
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 1339,
"end": 1348,
"loc": {
"start": {
"line": 56,
"column": 55
},
"end": {
"line": 56,
"column": 64
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1349,
"end": 1350,
"loc": {
"start": {
"line": 56,
"column": 65
},
"end": {
"line": 56,
"column": 66
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "shift",
"start": 1351,
"end": 1358,
"loc": {
"start": {
"line": 56,
"column": 67
},
"end": {
"line": 56,
"column": 74
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1359,
"end": 1360,
"loc": {
"start": {
"line": 56,
"column": 75
},
"end": {
"line": 56,
"column": 76
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 1361,
"end": 1370,
"loc": {
"start": {
"line": 56,
"column": 77
},
"end": {
"line": 56,
"column": 86
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1370,
"end": 1371,
"loc": {
"start": {
"line": 56,
"column": 86
},
"end": {
"line": 56,
"column": 87
}
}
},
{
"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": 1381,
"end": 1385,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1385,
"end": 1386,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyboard",
"start": 1386,
"end": 1394,
"loc": {
"start": {
"line": 58,
"column": 9
},
"end": {
"line": 58,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1394,
"end": 1395,
"loc": {
"start": {
"line": 58,
"column": 17
},
"end": {
"line": 58,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setOptions",
"start": 1395,
"end": 1405,
"loc": {
"start": {
"line": 58,
"column": 18
},
"end": {
"line": 58,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1405,
"end": 1406,
"loc": {
"start": {
"line": 58,
"column": 28
},
"end": {
"line": 58,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1406,
"end": 1407,
"loc": {
"start": {
"line": 58,
"column": 29
},
"end": {
"line": 58,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layoutName",
"start": 1415,
"end": 1425,
"loc": {
"start": {
"line": 59,
"column": 6
},
"end": {
"line": 59,
"column": 16
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1425,
"end": 1426,
"loc": {
"start": {
"line": 59,
"column": 16
},
"end": {
"line": 59,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "shiftToggle",
"start": 1427,
"end": 1438,
"loc": {
"start": {
"line": 59,
"column": 18
},
"end": {
"line": 59,
"column": 29
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1444,
"end": 1445,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 5
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1445,
"end": 1446,
"loc": {
"start": {
"line": 60,
"column": 5
},
"end": {
"line": 60,
"column": 6
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1446,
"end": 1447,
"loc": {
"start": {
"line": 60,
"column": 6
},
"end": {
"line": 60,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1451,
"end": 1452,
"loc": {
"start": {
"line": 61,
"column": 2
},
"end": {
"line": 61,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Called when simple-keyboard input has changed\r\n ",
"start": 1458,
"end": 1520,
"loc": {
"start": {
"line": 63,
"column": 2
},
"end": {
"line": 65,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onChange",
"start": 1524,
"end": 1532,
"loc": {
"start": {
"line": 66,
"column": 2
},
"end": {
"line": 66,
"column": 10
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1533,
"end": 1534,
"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": "input",
"start": 1535,
"end": 1540,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 18
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1541,
"end": 1543,
"loc": {
"start": {
"line": 66,
"column": 19
},
"end": {
"line": 66,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1544,
"end": 1545,
"loc": {
"start": {
"line": 66,
"column": 22
},
"end": {
"line": 66,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 1551,
"end": 1559,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1559,
"end": 1560,
"loc": {
"start": {
"line": 67,
"column": 12
},
"end": {
"line": 67,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "querySelector",
"start": 1560,
"end": 1573,
"loc": {
"start": {
"line": 67,
"column": 13
},
"end": {
"line": 67,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1573,
"end": 1574,
"loc": {
"start": {
"line": 67,
"column": 26
},
"end": {
"line": 67,
"column": 27
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": ".input",
"start": 1574,
"end": 1582,
"loc": {
"start": {
"line": 67,
"column": 27
},
"end": {
"line": 67,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1582,
"end": 1583,
"loc": {
"start": {
"line": 67,
"column": 35
},
"end": {
"line": 67,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1583,
"end": 1584,
"loc": {
"start": {
"line": 67,
"column": 36
},
"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": "value",
"start": 1584,
"end": 1589,
"loc": {
"start": {
"line": 67,
"column": 37
},
"end": {
"line": 67,
"column": 42
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1590,
"end": 1591,
"loc": {
"start": {
"line": 67,
"column": 43
},
"end": {
"line": 67,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "input",
"start": 1592,
"end": 1597,
"loc": {
"start": {
"line": 67,
"column": 45
},
"end": {
"line": 67,
"column": 50
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1597,
"end": 1598,
"loc": {
"start": {
"line": 67,
"column": 50
},
"end": {
"line": 67,
"column": 51
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1602,
"end": 1603,
"loc": {
"start": {
"line": 68,
"column": 2
},
"end": {
"line": 68,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ",
"start": 1609,
"end": 1670,
"loc": {
"start": {
"line": 70,
"column": 2
},
"end": {
"line": 72,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "onKeyPress",
"start": 1674,
"end": 1684,
"loc": {
"start": {
"line": 73,
"column": 2
},
"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": 1685,
"end": 1686,
"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": "button",
"start": 1687,
"end": 1693,
"loc": {
"start": {
"line": 73,
"column": 15
},
"end": {
"line": 73,
"column": 21
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1694,
"end": 1696,
"loc": {
"start": {
"line": 73,
"column": 22
},
"end": {
"line": 73,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1697,
"end": 1698,
"loc": {
"start": {
"line": 73,
"column": 25
},
"end": {
"line": 73,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "console",
"start": 1704,
"end": 1711,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1711,
"end": 1712,
"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": "log",
"start": 1712,
"end": 1715,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1715,
"end": 1716,
"loc": {
"start": {
"line": 74,
"column": 15
},
"end": {
"line": 74,
"column": 16
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Button pressed",
"start": 1716,
"end": 1732,
"loc": {
"start": {
"line": 74,
"column": 16
},
"end": {
"line": 74,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1732,
"end": 1733,
"loc": {
"start": {
"line": 74,
"column": 32
},
"end": {
"line": 74,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "button",
"start": 1734,
"end": 1740,
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1740,
"end": 1741,
"loc": {
"start": {
"line": 74,
"column": 40
},
"end": {
"line": 74,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1741,
"end": 1742,
"loc": {
"start": {
"line": 74,
"column": 41
},
"end": {
"line": 74,
"column": 42
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Shift functionality\r\n ",
"start": 1754,
"end": 1798,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 78,
"column": 9
}
}
},
{
"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": 1806,
"end": 1808,
"loc": {
"start": {
"line": 79,
"column": 6
},
"end": {
"line": 79,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1808,
"end": 1809,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "button",
"start": 1809,
"end": 1815,
"loc": {
"start": {
"line": 79,
"column": 9
},
"end": {
"line": 79,
"column": 15
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 1816,
"end": 1819,
"loc": {
"start": {
"line": 79,
"column": 16
},
"end": {
"line": 79,
"column": 19
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "{lock}",
"start": 1820,
"end": 1828,
"loc": {
"start": {
"line": 79,
"column": 20
},
"end": {
"line": 79,
"column": 28
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 1829,
"end": 1831,
"loc": {
"start": {
"line": 79,
"column": 29
},
"end": {
"line": 79,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "button",
"start": 1832,
"end": 1838,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 38
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 1839,
"end": 1842,
"loc": {
"start": {
"line": 79,
"column": 39
},
"end": {
"line": 79,
"column": 42
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "{shift}",
"start": 1843,
"end": 1852,
"loc": {
"start": {
"line": 79,
"column": 43
},
"end": {
"line": 79,
"column": 52
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1852,
"end": 1853,
"loc": {
"start": {
"line": 79,
"column": 52
},
"end": {
"line": 79,
"column": 53
}
}
},
{
"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": 1863,
"end": 1867,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1867,
"end": 1868,
"loc": {
"start": {
"line": 80,
"column": 12
},
"end": {
"line": 80,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "handleShiftButton",
"start": 1868,
"end": 1885,
"loc": {
"start": {
"line": 80,
"column": 13
},
"end": {
"line": 80,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1885,
"end": 1886,
"loc": {
"start": {
"line": 80,
"column": 30
},
"end": {
"line": 80,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1886,
"end": 1887,
"loc": {
"start": {
"line": 80,
"column": 31
},
"end": {
"line": 80,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1887,
"end": 1888,
"loc": {
"start": {
"line": 80,
"column": 32
},
"end": {
"line": 80,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1892,
"end": 1893,
"loc": {
"start": {
"line": 81,
"column": 2
},
"end": {
"line": 81,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1897,
"end": 1898,
"loc": {
"start": {
"line": 83,
"column": 0
},
"end": {
"line": 83,
"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": 1902,
"end": 1908,
"loc": {
"start": {
"line": 85,
"column": 0
},
"end": {
"line": 85,
"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": 1909,
"end": 1916,
"loc": {
"start": {
"line": 85,
"column": 7
},
"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": "App",
"start": 1917,
"end": 1920,
"loc": {
"start": {
"line": 85,
"column": 15
},
"end": {
"line": 85,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1920,
"end": 1921,
"loc": {
"start": {
"line": 85,
"column": 18
},
"end": {
"line": 85,
"column": 19
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1921,
"end": 1921,
"loc": {
"start": {
"line": 85,
"column": 19
},
"end": {
"line": 85,
"column": 19
}
}
}
]
}