Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Oneechan69

macrumors 6502
Original poster
Mar 29, 2022
270
32
US
When I map a modifier to sticky_right_control, my complex modification below doesn't work without pressing the non-modifier key at least twice or waiting (h or j in this case). How can the delay be removed, and have it work either when I press it once or while holding it down?

JSON:
{
        "description": "Ctrl + h j k l to Arrow Keys",
        "manipulators": [
            {
                "from": {
                    "key_code": "h",
                    "modifiers": { "mandatory": ["right_control"] }
                },
                "to": [{ "key_code": "left_arrow" }],
                "type": "basic"
            },
            {
                "from": {
                    "key_code": "j",
                    "modifiers": {
                        "mandatory": ["right_control"],
                        "optional": ["any"]
                    }
                },
                "to": [{ "key_code": "down_arrow" }],
                "type": "basic"
            }
        ]
    }
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.