Identify keymaps and macros by numeric IDs. Use keystroke naming instead of key.

This commit is contained in:
László Monda
2016-03-20 01:39:49 +01:00
parent 4f052b3789
commit 01ca18ba34

View File

@@ -10,6 +10,7 @@
],
"keymaps": [
{
"id": 0,
"name": "QWERTY",
"isDefault": true,
"abbreviation": "QTY",
@@ -21,12 +22,15 @@
"pointerRole": "move",
"keyActions": [
{
"actionType": "key",
"actionType": "none"
},
{
"actionType": "keystroke",
"scancode": 120,
"modifierMask": 16
},
{
"actionType": "dualRoleKey",
"actionType": "dualRoleKeystroke",
"scancode": 111,
"longPressAction": "mod"
},
@@ -36,11 +40,11 @@
},
{
"actionType": "playMacro",
"macro": "My address"
"macroId": 0
},
{
"actionType": "switchKeymap",
"keymap": "Dvorak"
"keymapId": 1
}
]
},
@@ -79,11 +83,13 @@
]
},
{
"id": 1,
"name": "Dvorak"
}
],
"macros": [
{
"id": 0,
"name": "My address",
"isPrivate": true,
"isLooped": false,
@@ -145,4 +151,4 @@
]
}
]
}
}