Add your own complex modifications (using JavaScript)
This feature is available since Karabiner-Elements 15.9.6 (beta).
Step 1
Open Complex Modifications tab and press Add your own rule using JavaScript button.
Step 2
An editor will open with sample rules. Change the content and press the Save button to register.
Tip
You can save by using the command + s shortcut as well.In JavaScript, you write code that returns the JSON defining the rules.