I'm trying to program macros that would be trigger simply by oneletterkeystroke like "q", "s", "d", etc and still being able to type those letter in a texte field if needed.
I couldn't find a way to set a condition like "If I'm in a text filed".
I tried several conditions like if (letter is double pressed, is pressed a longtime, also mouse conditions like "if the mouse's left button is pressed" but the letters concerned won't work in a text filed.
Hi. This has been covered a lot if you search for it. The concensus seems to prevail that you shouldn't use single character hotkeys for apps that accept typing. There's no perfect workaround for it and the drawbacks are significant. It's not that hard to hold a modifier and if you really want a one-finger solution, consider a second hand Stream Deck.
Do you write fast? If so, you will have a problem. If single letters are typed when releasing the key and others when pressing it, there will be letter twists.
Here's another idea that may or may not be applicable for your use.
I have a bunch of single character macros whose group is only available in a Apple Mail when the front window title matches Archive|Inbox|Search.
This means that these keys don't interfere with email compose windows or searches, which are the only times I type. Be aware that if you use the menubar help search function, those keys won't be registered in its text field.
Hold ⇧ and hit yqy quickly. You should get YQY but you get YYQ.
As you can see, hitting YQY results in YQYQ being registered as input and YYQ actually being typed, due to macro interference.
It may not make a real-world difference if you're not a fast typer, but you are fast, and if you type anything in caps without using caps lock, you may run into issues.
It's funny because about a year ago we were on opposite sides of the same discussion. I realised you were right, and that fast typing is interrupted by multi-press macros.
Yeah. I personally do that quite often, particularly when naming parent folders. If it works for you then great. Just wanted to make it clear that if you're going to use a single modifier, ⇧ is the only one that could interfere with typing.