KE-complex_modifications icon indicating copy to clipboard operation
KE-complex_modifications copied to clipboard

why the below code snip always run both "to" condition and "to_if_alone" ?

Open 668168 opened this issue 1 year ago • 0 comments

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"
                            }
                        ]
                    },

668168 avatar Jan 29 '23 15:01 668168