rio icon indicating copy to clipboard operation
rio copied to clipboard

Key binding "Quit", "ScrollPageUp" and "ScrollPageDown" not working

Open dougaak opened this issue 1 year ago • 5 comments

Please forgive me for editing so frequently, I discovered some quirks that actually more fit in a spearated issue.


Rio version: v0.2.30 OS: Windows 11

The action "Quit", "ScrollPageUp" and "ScrollPageDown" just do nothing.

Below is my configuration for reference:

[bindings]
keys = [
    { with = 'alt', key = 'p', action = 'Paste' },
    { with = 'alt', key = 'y', action = 'Copy' },
    { with = 'alt', key = 'v', action = 'SplitRight' },
    { with = 'alt', key = 's', action = 'SplitDown' },
    { with = 'alt', key = 'w', action = 'SelectNextSplit' },
    { with = 'alt', key = 'x', action = 'CloseSplitOrTab' },
    { with = 'alt', key = 'o', action = 'CreateTab' },
    { with = 'alt', key = 'h', action = 'SelectPrevTab' },
    { with = 'alt', key = 'l', action = 'SelectNextTab' },
    { with = 'alt', key = 'k', action = 'Scroll(1)' },
    { with = 'alt', key = 'j', action = 'Scroll(-1)' },
    { with = 'alt', key = 'u', action = 'ScrollPageUp' },
    { with = 'alt', key = 'd', action = 'ScrollPageDown' },
    { with = 'alt', key = 'q', action = 'Quit' }
]

dougaak avatar Sep 21 '25 09:09 dougaak

I have the same issue with version 0.2.32 on Ubuntu 25.10. My keybinding for action = "Quit" doesn't work.

johny65 avatar Oct 21 '25 21:10 johny65

I have the same issue on Windows 11 version 0.236

Rahmyeon avatar Dec 08 '25 13:12 Rahmyeon

I encounter the same problem on Artix Linux.

JonathanDUFOUR avatar Dec 21 '25 03:12 JonathanDUFOUR

The Quit part of this is the same bug as #892 — root cause posted there: the Quit action emits RioEvent::Quit, but application.rs only handles RioEvent::Exit, so the event is dropped (context/mod.rs:672 vs application.rs:422). See https://github.com/raphamorim/rio/issues/892#issuecomment-4575358147.

Note ScrollPageUp/ScrollPageDown are a separate matter — those actions are handled (screen/mod.rs:1187/1200), so that part likely has a different cause.

nikicat avatar May 29 '26 13:05 nikicat

the Quit part is fixed on main (see #892). ScrollPageUp/ScrollPageDown are a separate thing, can you retest those on 0.4.11? #1717 also made [bindings] live reload, so make sure to test on a fresh build

raphamorim avatar Jul 20 '26 20:07 raphamorim