cpriest / SnapLinksPlus

Snap Links Plus is a Browser Addon that lets you lasso links, checkboxes and other elements do things with them.
Other
196 stars 35 forks source link

[Feature request] Add mouseless support, pls! #310

Open utopianist opened 4 years ago

utopianist commented 4 years ago

I'm working in a mouseless PC, likes MacBook. So, I can't trigger SnapLinksPlus's function as click mouse left or right.

image

Can we achieve this function just only push the key z or others? Tks!

cpriest commented 4 years ago

Yes, it's definitely possible.

remi-garcia commented 3 years ago

Duplicate of #215 Still I'm closing #215 as this one as more info

remi-garcia commented 3 years ago

Solving this issue should also permit using SLP3 on Smartphones. IMHO that last part is not as crucial.

cpriest commented 3 years ago

I'm not sure what events are event sent with touchpads or touch devices, I'll need to test this on my laptop.

remi-garcia commented 3 years ago

I've done some reading and found that "touch events are typically available on devices with a touch screen, but many browsers make the touch events API unavailable on all desktop devices, even those with touch screens" (here). "To support both touch and mouse across all types of devices, use pointer events instead." There is the pointerEvent.pointerType property that would permit to handle both touch and mouse without modifying the preferences.

@rsalmei : that might interest you as solving this should solve your issue too.

cpriest commented 3 years ago

Thanks for the research on that, I'll see how it performs in the wild.  I do have one laptop with a touch screen and a touchpad.

rsalmei commented 3 years ago

Nice, thanks @remi-garcia! Looking forward to see how it goes.

Anutrix commented 3 years ago

Just a note: It doesn't work with both a hard right-click or with a gesture(like double-click to drag) on MacBook Pro. But on Windows, just gestures don't work. Hard right-click on the trackpad on Windows works fine.