Possible to discern when a user shift/ctrl/cmd clicks a link? #17
Comments
I suppose that's reasonable, but the use case seems unusual. Is this when touch events are simulated in chrome devtools? On Aug 5, 2014, at 5:40 PM, Ben Frain notifications@github.com wrote:
|
I have Tappy set like the intro docs:
I think it's people using the site on desktop/non-touch who ctrl-click to open links in a doc in a new window/tab. I don't do that myself but I know it's not uncommon (I right click and 'open in new tab' for the same effect) but obviously people who left-click with a modifier key aren't being discerned/filtered out by Tappy at the moment which means alll clicks with Tappy bound to them end up in the main window. It's possible (probable) I just need to amend the way I'm applying it? |
Ah, yeah sorry that makes good sense. We should fix this with a little exception. |
modifier keys - better protection. fixes #17
Would it be easy enough for tappy to discern between 'normal' taps and ones with a modifier key? I realise this isn't an everyday occurrence but since putting tappy on my blog I had someone complain I was click-jacking shift+click, which in their Chrome should have opened the link in a new tab (but opens in the same one with Tappy present).
My JS-fu is weak so I'm short on code offerings :(
I'm thinking along these lines (semi-pseudo code):
The text was updated successfully, but these errors were encountered: