SnapLinksPlus icon indicating copy to clipboard operation
SnapLinksPlus copied to clipboard

[Feature request] Add mouseless support, pls!

Open utopianist opened this issue 5 years ago • 8 comments

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!

utopianist avatar Apr 14 '20 04:04 utopianist

Yes, it's definitely possible.

cpriest avatar Apr 14 '20 09:04 cpriest

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

remi-garcia avatar Dec 07 '20 08:12 remi-garcia

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

remi-garcia avatar Dec 07 '20 08:12 remi-garcia

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

cpriest avatar Dec 07 '20 14:12 cpriest

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.

remi-garcia avatar Dec 07 '20 16:12 remi-garcia

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.

cpriest avatar Dec 07 '20 20:12 cpriest

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

rsalmei avatar Dec 07 '20 22:12 rsalmei

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.

Anutrix avatar Jan 27 '21 07:01 Anutrix