As the title says.
The behavior is the same when I use the action in KM.
Looks like the window became inactive (switching to KM engine?) for the macro and then switched back active after the macro? With AppleScript trigger, it runs in the background, so no active window switch?
with "kmtrigger://macro=" trigger
with AppleScript trigger: