For this to work properly, rather than sending the character first then backspacing, it should "eat" the keystroke and determine if it is a long press or not. If it is, then do the long press, then if it's not, it can send the normal key through. It should work that way even for a normal keypress like replacing 1 with ! when you long press 1. I don't want to see it type a 1 before replacing it with a !. It should wait until I release the key then type a 1 or ! depending on how long I held the key.
all the hotkeys are set using the ~ tilde/pass-through option because having to wait 240 ms to decide would slow down any regular typing too much.
taking out the tilde option means all your other hotstrings will stop working so thats not really an option either. ive tried this a few different ways at this stage and this is the only one where all 3 things work.
If I change it to a very long number to represent several seconds (basically saying I never want it to spam so I don't have to be too precise on my long press duration), it didn't work.
i never intended it to be used for stopping the key from spamming though. if that number needs to be changed the it would probably be around the same value, 600 or 700 at the most maybe, but im not even sure how much it varies between computers or different types of hardware. that main purpose of that number is to not send any alternate keys once the key has started spamming, otherwise when you let go it will send the alternate key at the end like this: 555555555555555%
feel free make your own version from this that disables the keys from spamming. i wanted to have the option to do both so thats why i didnt do it like that.
One other suggestion: I think it would be helpful to have some audio feedback, like a soft click or blip that tells you when you've held the key long enough to trigger the long press. That would allow you to press it only as long as needed and not have to hold it overly long in fear of sending the regular key instead, which just creates a mess.
yea thats not a bad idea. there is a bit of a knack to it unfortunately so something like that might help to get the hang of it when you use it first.
what about using the capslock key as the ctrl key anyway? its a bit easier to reach with your pinky and it pretty much on the home row
ctrl+ v should also work btw. not all hotkeys work though. i should have made that a bit clearer in the description