It has become common to e.g. map Caps Lock to Ctrl as a modifier / Esc when pressed alone. I had an idea to do a similar thing with regular keys, e.g. j+w -> Ctrl+w, but j when pressed alone. I cannot find any resources on that though and I can see some potential problems, e.g. when typing fast one could trigger unwanted mappings. The solution to this particular problem could be using only uncommon sequences (e.g. j+w seems OK, but not j+a). Has anyone tried such a setup and/or can comment of its viability?
Tried something like that and eventually commented it out but I hadn't thought of a good way to have the key work normally when pressed alone(as in you immediately get j when you press j instead of when you release the key or such but somehow get no j if you press w too). But if you have some use case where getting the regular key's input in addition to your mapping isn't an issue I'd say it's viable.
I suppose you could also do something like have pressing a mapping try to remove the initial input before executing but that seems kind of troublesome.