I have a macro that reminds me (by giving me a confirmation alert) if I really want to ctrl + w (close a tab/tabs in my case) limited to firefox. This is because in firefox sometimes with an addon I use for vertical tabs at the number of tabs I use, which is lots, everything bugs out and when trying to select few tabs and close, say 10 tabs, by doing a selection of the tabs with shift + left click, sometimes instead of the selection being only on those 10 tabs, it's on all the tabs before the first selected one, up until the one that I am selecting, which again can be hundreds of tabs, then there is no confirmation within firefox that I want to close lots of tabs, I quickly press out of habit, it and close all my tabs.
So the macro I made helps me with this, as it reminds me to check if the bug happened. However, the issue is that now whenever I use ctrl + w in firefox even for a single tab, I have the alert pop out. First it's a bit annoying, second it's not that big of an issue within itself, since I can quickly hit enter, but then I get used to ctrl + w + enter motion for closing any tabs and it defeats the purpose since I get desensitized. So I would really want to only notify me if I have pressed shift + and left click before (it can even be in the 5 seconds beforehand).
In any case, by looking at the triggers modifier + mouse buttons as a trigger is not possible. Here is my current macro, everything works fine, but as discussed, it's triggered by ctrl + w, instead of a sequence of shift + click then ctrl + w, all within some period of time.