Confused Key Sequences and shortcuts

I have the impression that something is wrong with the key sequences / shortcuts.

Suppose I set the shortcut to a = b
And a Key Sequence a = a (without deleting)

If I press a, shouldn't ab come out? But the result is bb

This is not a meaningful example, just a simple one. Or is it just me?

that's a problem with the order / priority of execution.

The key sequence will be recognized first. It will trigger the shortcut a, which is mapped to b. So it will print b.
The key sequence however doesn't block the key from triggering the shortcut, so your keypress will also trigger the shortcut a, which is mapped to b. So it will also print b.

An option like "don't process shortcut in BTT" when sending shortcuts would be a good idea.

Yes, why not.

What of course also works is a Key Sequence a = insert own text "a".

Then the result is "ba". So first the shortcut, then the KS. Correct? :slightly_smiling_face: