Why does macro output change with input source?

I’ve been happily using Keyboard Maestro for a couple of years, and nearly everything has worked perfectly up until verion 7. I’m now running 7.0.3, and suddenly I have a problem with all of my text macros. On my MacBook Pro (running Yosemite), I switch frequently between two input sources (two different keyboards for two different languages).

The problem is that suddenly, the output of every macro that outputs text via the “insert text by typing” option depends on what keyboard I have it set to at the moment of execution. Apparently, it is now focused on the keys and not the characters that those keys represented when the macro was created, with the result that half of the time, it outputs gibberish.

I admit that this is more literally true to the “insert text by typing” description, but I can’t see why this would be desirable. I have been using this option rather than “insert text by pasting” since that didn’t work very well for me; I think the issue was that it changed the contents of the keyboard.

Is there a fix for this? Any help would be welcome!

Keyboard Maestro should detect when you change layout and should insert the correct text after it notices the change to the layout.

It may take some time to notice the change though, I’m not sure there is any notification when you change layouts. It’s also possible it does not always detect the change, its not a normal usage case as most people never change layouts so it is not going to be well tested.

Type a Keystroke and Hot Key and Device Key triggers are all key-code based, and if you change the keyboard layout they will remain on the same physical keys.