Skip to main content

action_escapes_focused_popup

Function action_escapes_focused_popup 

Source
pub fn action_escapes_focused_popup(action: &Action) -> bool
Expand description

PIC.2: actions that escape / reconfigure the world BEHIND a focused popup overlay — tab navigation and pane-tree management. A focused popup (State B) is an exclusive overlay surface, not a pane you can navigate away from; these chords are consumed while it holds focus so a stray gt / <C-w>… doesn’t refocus or reshape the buffer behind it (and, for gt, drag the single-slot popup overlay onto the new tab). Motions / scroll / search / dismiss / follow-link are NOT here — they keep operating on the popup’s own cursor.

Denylist rather than a popup-safe whitelist because motions/scroll dispatch via Action::Invoke(grammar) (opaque here), so the enumerable set is the escaping actions; everything else flows through onto the popup, matching the “only popup-meaningful keys act” intent.