Skip to content

[Linux] [BUG] Special keybinds' equivalent characters are being written in the shell session while navigating tabs #741

Open
@gerelef

Description

@gerelef

steps

  1. bind pageup & pagedown w/ control as mod key to action selectprevtab/selectnexttab
# ... this is part of a bigger config file, available full at my dotfiles repo if necessary
{ key = "pageup", with = "control", action = "SelectPrevTab" },
{ key = "pagedown", with = "control", action = "SelectNextTab" }
# ...
  1. expect to go up & down the tabs, with no characters being pressed into the current login shell session
    result:
    bad-giphified

unfortunately, characters were written while navigating up & down, however:

workaround

instead of binding pageup & pagedown to control directly, first override them with ReceiveChar, like so:

# ... this is part of a bigger config file, available at my dotfiles repo if necessary
{ key = "pageup", with = "control", action = "ReceiveChar" },
{ key = "pagedown", with = "control", action = "ReceiveChar" },
{ key = "pageup", with = "control", action = "SelectPrevTab" },
{ key = "pagedown", with = "control", action = "SelectNextTab" }
# ...

result:
good-giphified

version

latest stable (v.0.1.17), built locally with wayland & x11 features

~/r/rio ((v0.1.17))> cargo build -p rioterm --release --no-default-features --features=wayland,x11

environment

Fedora 41 (Preview Channel) GNOME 47, wayland session
recordings are all done in fish shell
the current (relevant) config under test is visible in the background in the recording (as well as the shell, however you may find it at my dotfiles as the last working configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions