How to prevent ⌘ (key sequence) trigger from getting triggered by ⌘+W, ⌘+C, ⌘+V, etc.?

Hello,

I'm using key sequence triggers with modifier keys, such as the Command key (⌘).

Each trigger itself works well, but I'm struggling to find a way to prevent it from getting triggered when the modifier key is pressed with some other keys, such as ⌘+W (for closing), ⌘+C (for copying), ⌘+V (for pasting), etc.

I have tried "Order is Relevant", but I am having the same issue, even with a quite short Max pause between keystrokes (0.15 secs).

I would appreciate any help on this.

Thank you!

by default these two would trigger exlusively because the cmd-up is required to happen right after the cmd-down:


You could further limit the triggering by using the "Trigger only if no further keyboard input is recognized for X seconds" option:

Thank you so much for the response.

Actually, I had tried (and just re-tried) setting up a dummy ⌘+C trigger (with a meaningless action) to catch that event, but I'm observing the same behavior (still the ⌘ action got triggered and the selected text was copied as well).

And, I'm also experiencing the same behavior with the "Trigger only if no further keyboard input is recognized for X seconds" option (I notice the delay before the action, so I believe it is set up correctly).

I think I might not understand the issue correctly- however just to be sure:

A key sequence does NOT block any keyboard shortcuts by default, so the system cmd+c/v etc. will still be triggered when you press e.g. cmd+c

Unfortunately, I don't understand what you mean either. :slightly_smiling_face:

So you have set up a key sequence ⌘ down, ⌘ up.

And this key sequence is also triggered when you press ⌘+c?

This is actually not possible because “c” interrupts the sequence of ⌘ down and ⌘ up.

Maybe it would help if you showed a few screeshots?

I appreciate both the replies.

So you have set up a key sequence ⌘ down, ⌘ up.
And this key sequence is also triggered when you press ⌘+c?

Yes, this was what I was experiencing. ⌘+C triggered both the BTT action (for ⌘) and copying.
In fact, it may not have been a deterministic behavior, though. Sometimes I had this issue, but sometimes I didn't. I originally thought it was conditional on how laggy my macOS was, but at the moment, I'm not having this issue again after modifying and deleting a few deactivated key sequence triggers for taking a screenshot.

This is the basic configuration I'm using (there were a few more deactivated triggers, if it helps to diagnose the issue).

Thank you!

And ⌘+c is also a key sequence? Do you want to overwrite the standard shortcut (copy)? Or what do you want to achieve with it?

And ⌘+c is also a key sequence? Do you want to overwrite the standard shortcut (copy)? Or what do you want to achieve with it?

I don't need that key sequence, but I tried the ⌘+c sequence just to see if it could stop this behavior.

Ok, just to clarify. If you have set up ⌘+c as a key sequence, then this will be triggered, but so will the copy command of the shortcut. If you do not want this, you must set up “does nothing” for the shortcut, i.e. no action.

But anyway, I don't understand how the shortcut ⌘+c can trigger the key sequence ⌘ down, ⌘ up. If a letter is typed between ⌘ down/up, the key sequence should not work. If it does for you, I'm afraid I don't know what's wrong. :man_shrugging:

Thank you for the information and trying to help me!

I have started considering the possibility that "secure input" may be causing the issue (like in this screenshot):

Do you think there is a chance that this is the case?

with secure input enabled BTT won‘t be able to recognize any key sequences apart from modifier keys - so yes that is possible

Makes sense.

Thank you very much for providing helpful responses!

do you know what is triggering secure input on your system?

I think it has been Bitwarden (the password-requiring screen) every time.