Conflict of two actions

Cmd+1 short/long pressed brings app A or B to the front. The problem is that cmd+1 in app B does something.

So when I am in app B cmd+1 (short) switches to app A, but it additionally triggers an action of the app.

This is because the app change (short press) happens on release, but the app action happens on press.

Is there a way to solve this? Thanks!

I think the only way would be to disable the app‘s original cmd+1 shortcut

How do you do that?

What I have done now is to set up two key sequences cmd+1 and cmd+1+1. I have also set up the shortcut for app B: cmd+1 does nothing. This seems to work. Although the shortcut cmd+1 is disabled, the same key sequence works.