I used the original Karabiner app 10.22 and could very precisely restrict any actions via Apple's Accessibility Inspector to work for specific dialogue windows.
This is no longer possible with Karabiner Elements.
So in order to (in Safari) click the context menu's item "Element Information" (which I use very often) I tried this code in "Complex Modifications":
"to": [ { "pointing_button": "button2" },
{ "key_code": "e" },
{ "key_code": "return_or_enter"} ]
Which did work, but alternately only opened/showed the context menu or actually executed "Element Information".
By experimenting, I found a workaround that mostly works for me:
"parameters": { "basic.to_if_held_down_threshold_milliseconds": 50 },
"to": [ { "pointing_button": "button2" } ],
"to_if_held_down":
[ { "key_code": "e" },
{ "key_code": "return_or_enter"} ]
My questions:
Why are not all "commands" in the first code example executed in due order (or: only alternately) and (more interestingly:) how can you ensure that each "command" is executed every time?