Replies: 3 comments 1 reply
-
|
Little workaround for this using Hammerspoon: zen = {}
zen.bundleID = "app.zen-browser.zen"
local glanceModifiers = { "alt" } -- replace with whatever modifier you use for triggering glance on a click
local zenForceTapHappening = false
zen.forceTap = hs.eventtap.new({ hs.eventtap.event.types.gesture },
function(e)
local specificType = e:getType(true)
if specificType == hs.eventtap.event.types.pressure then
local touch = e:getTouchDetails()
if touch and touch.stage == 2 and not zenForceTapHappening then
local pos = hs.mouse.absolutePosition()
local el = hs.axuielement.systemElementAtPosition(pos)
local app = el.AXWindow:asHSWindow():application()
if app and app:bundleID() == zen.bundleID then
zenForceTapHappening = true
hs.eventtap.event.newMouseEvent(hs.eventtap.event.types.leftMouseDown, pos, glanceModifiers):post()
hs.eventtap.event.newMouseEvent(hs.eventtap.event.types.leftMouseUp, pos, glanceModifiers):post()
return true
end
elseif zenForceTapHappening then
if touch.stage ~= 2 then
zenForceTapHappening = false
end
return true
end
end
end):start() |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Second this. Force click and Glance is a natural match on macOS |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Third this :) Would be a great improvement to user experience to be able to quickly open links in a glance without having to right click or using an extra keyboard key. Edit: seems like a duplicate of #4986 btw |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Force Click is a feature on Apple's touchpads which lets you press with more force to access different features. Right now, when force pressing on a link, mac os just opens it's dictionary thing. It would be nice if zen browser could handle that and open the "glance" on that link. Similar feature already exists in safari - it opens preview for the link you press.
Beta Was this translation helpful? Give feedback.
All reactions