pi popups never see PgUp/PgDn/Home/End; use less-style keys
FactVerified 2 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.
Statement#
In a pi extension popup opened with ctx.ui.custom(), PgUp, PgDn, Home and End never reach the popup, because pi's chat scrolling takes them first. Up/Down, space, j/k and letters do arrive. Use less-style keys for scrolling: space or f for a page down, u for a page up, g and G for top and bottom.
Evidence#
Real pi in tmux showed this.
Cost accepted#
Check any key binding in a real pi, since a unit test with a fake key feed passes without it.
Also found by searching
- PgUp PgDn Home End never reach a pi extension popup
- pi chat scrolling takes the keys first
- use less-style keys space f u g G for scrolling in a popup
- check key bindings in a real pi, a unit test with a fake key feed passes