Skip to main content

ring_shown

Function ring_shown 

Source
pub fn ring_shown(ctx: &Context) -> bool
Expand description

Whether the focus is visible (the web’s :focus-visible): a navigation key (Tab, Shift+Tab, an arrow, Home, End, Page Up, Page Down) was pressed, or the focus moved without the pointer (F6, a command, a screen reader), since the last press of the pointer. The focus plugin then rings the focused widget, and a widget drawing its own focus ring draws it only while this holds (shows_ring). One flag per window.

Only the ring’s visibility follows it: where the keyboard goes, and the focus AccessKit reports, do not change. Without the focus plugin installed this is always true, as before the rule.