Key sequence not working properly

Hello,
I followed the official example for key sequence as text expansions but even that didn't work properly and it showed erratic or unpredictable behavior.

As in the screenshot I add a basic sequence `\\dd`

I played around with the delays but didn't find a fix anyway.
Error:

  • Sometimes the trigger didn't work at all
  • Sometimes it work but it just delete by key sequence without pasting the text
  • In some vscode tab it works, in others it doesn't

I suspect it has to do with timing but also it could be VS Code. It seems to be working a bit better (not always) in plain Text Edit app.

Please check this screen recording in vscode

I use it a lot with VSCode, so that's probably not it. I'd recommend to first test with some visible action like "show hud" to check whether your key sequence or the action is causing the problem

//edit: ah in your video it seems like the key sequence is triggering ok but the action is not being executed. Does cmd+v work in your vscode? (When pasting, BTT basically just presses cmd+v). Is there anything special about your keyboard layout?

Hello, yes, it triggers but either paste and deletes it immediately or it doesn't paste it at all.

Nothing special in my keyboard It's a logitech MX Keys mini

does the paste text action work with other BTT triggers for you (e.g. standard keyboard shortcuts)? I can't really think of a reason why this wouldn't work.

yes it does.
I created a standard keyboard shortcut and assigned the Insert / Type / Paste Custom Text Action and it worked very smoothly

it kind of sounds like some timing issue, maybe a conflict with some other app? Could you try to add a small "async delay" action before the paste? (0.1s)

The async delay seems to be working.
I will test it for a couple of day to see if it's a definitive solution

Thanks!