1 Unset scroll target
Gold Holk edited this page 2022-05-08 11:17:55 +08:00

Unset scroll target

Sometimes, tridactyl focus to clicked element (with hint) and the scroll feature work abnormally. It scroll the parent element of the clicked element or somewhat, which should not be scrolled in any situaltion, but not the whole page. In my case, this happens in duckduckgo and some other websites.

scrollblur

This js snippet command can unset the scroll target. I bind it to <C-g>.

command scrollblur js tri.scrolling.setCurrentFocus(document.documentElement || document.body)
bind <C-g> scrollblur

auto blur after click any element

This will always blur after open link with f/F.

bind f composite hint ; scrollblur
bind F composite hint -b ; scrollblur

blur config

If you want auto blur only happen in some url:

set blur_after_hint_open false
command smartblur js if (tri.config.get('blur_after_hint_open') == 'true') tri.scrolling.setCurrentFocus(document.documentElement || document.body)

bind f composite hint ; smartblur
bind F composite hint -b ; smartblur

seturl duckduckgo blur_after_hint_open true