KE-complex_modifications
KE-complex_modifications copied to clipboard
why the below code snip always run both "to" condition and "to_if_alone" ?
when i press 'CAPS_LOCK' key, expect to just output '2'. but output '23' WHY?
{
"description": "try optional usage.",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": [
"shift"
]
}
},
"to": [
{
"key_code": "1"
}
],
"type": "basic"
},
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "2"
}
],
"to_if_alone": [
{
"key_code": "3"
}
],
"type": "basic"
}
]
},