mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
411 lines
No EOL
9.4 KiB
JSON
411 lines
No EOL
9.4 KiB
JSON
{
|
|
"keyboard": {
|
|
"id": "test_chirality",
|
|
"name": "KeymanWeb Chirality Tester",
|
|
"filename": "resources/keyboards/test_chirality.js",
|
|
"languages": {}
|
|
},
|
|
"inputTestSets": [
|
|
{
|
|
"constraint": {
|
|
"target": "hardware",
|
|
"validOSList": null,
|
|
"validBrowsers": null
|
|
},
|
|
"testSet": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "a",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 0,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "DF_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "Control",
|
|
"code": "ControlLeft",
|
|
"keyCode": 17,
|
|
"modifierSet": 2,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "a",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 2,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "LC_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "Alt",
|
|
"code": "AltLeft",
|
|
"keyCode": 18,
|
|
"modifierSet": 4,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "a",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 4,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "LA_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "Alt",
|
|
"code": "AltRight",
|
|
"keyCode": 18,
|
|
"modifierSet": 4,
|
|
"location": 2
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "a",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 4,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "RA_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "Control",
|
|
"code": "ControlRight",
|
|
"keyCode": 17,
|
|
"modifierSet": 2,
|
|
"location": 2
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "a",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 2,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "RC_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "Control",
|
|
"code": "ControlLeft",
|
|
"keyCode": 17,
|
|
"modifierSet": 2,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "Shift",
|
|
"code": "ShiftLeft",
|
|
"keyCode": 16,
|
|
"modifierSet": 3,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "A",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 3,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "LC_CAP_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "Control",
|
|
"code": "ControlLeft",
|
|
"keyCode": 17,
|
|
"modifierSet": 2,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "Alt",
|
|
"code": "AltLeft",
|
|
"keyCode": 18,
|
|
"modifierSet": 6,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "a",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 6,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "RA_a",
|
|
"msg": "AltGr emulation failed!"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "Control",
|
|
"code": "ControlLeft",
|
|
"keyCode": 17,
|
|
"modifierSet": 2,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "Alt",
|
|
"code": "AltLeft",
|
|
"keyCode": 18,
|
|
"modifierSet": 6,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "Shift",
|
|
"code": "ShiftLeft",
|
|
"keyCode": 16,
|
|
"modifierSet": 7,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "A",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 7,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "RA_CAP_a",
|
|
"msg": "AltGr emulation failed!"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "Alt",
|
|
"code": "AltLeft",
|
|
"keyCode": 18,
|
|
"modifierSet": 4,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "Shift",
|
|
"code": "ShiftLeft",
|
|
"keyCode": 16,
|
|
"modifierSet": 5,
|
|
"location": 1
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "A",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 5,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "LA_CAP_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "CapsLock",
|
|
"code": "CapsLock",
|
|
"keyCode": 20,
|
|
"modifierSet": 16,
|
|
"location": 0
|
|
},
|
|
{
|
|
"type": "key",
|
|
"key": "A",
|
|
"code": "KeyA",
|
|
"keyCode": 65,
|
|
"modifierSet": 16,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "CAPSLOCK_DF_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "B",
|
|
"code": "KeyB",
|
|
"keyCode": 66,
|
|
"modifierSet": 16,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "b"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "key",
|
|
"key": "b",
|
|
"code": "KeyB",
|
|
"keyCode": 66,
|
|
"modifierSet": 0,
|
|
"location": 0
|
|
}
|
|
],
|
|
"output": "b"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"constraint": {
|
|
"target": "desktop",
|
|
"validOSList": null,
|
|
"validBrowsers": null
|
|
},
|
|
"testSet": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "osk",
|
|
"keyID": "default-K_A"
|
|
}
|
|
],
|
|
"output": "DF_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "osk",
|
|
"keyID": "default-K_LCONTROL"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "leftctrl-K_LALT"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "leftctrl-leftalt-K_A"
|
|
}
|
|
],
|
|
"output": "RA_a",
|
|
"msg": "OSK-based AltGr emulation failed!"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "osk",
|
|
"keyID": "default-K_LCONTROL"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "leftctrl-K_LALT"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "leftctrl-leftalt-K_SHIFT"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "leftctrl-leftalt-shift-K_A"
|
|
}
|
|
],
|
|
"output": "RA_CAP_a",
|
|
"msg": "OSK-based AltGr emulation failed!"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "osk",
|
|
"keyID": "default-K_RALT"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "rightalt-K_A"
|
|
}
|
|
],
|
|
"output": "RA_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "osk",
|
|
"keyID": "default-K_RCONTROL"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "rightctrl-K_A"
|
|
}
|
|
],
|
|
"output": "RC_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "osk",
|
|
"keyID": "default-K_RALT"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "rightalt-K_RCONTROL"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "rightctrl-rightalt-K_A"
|
|
}
|
|
],
|
|
"output": "RCA_a"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"type": "osk",
|
|
"keyID": "default-K_CAPS"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "default-K_RCONTROL"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "rightctrl-K_RSHIFT"
|
|
},
|
|
{
|
|
"type": "osk",
|
|
"keyID": "rightctrl-shift-K_A"
|
|
}
|
|
],
|
|
"output": "CAPSLOCK_RC_CAP_a"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |