Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape sequence is being sent to terminal when adding keybinds.. #861

Open
vinoff opened this issue Dec 27, 2024 · 1 comment
Open

Escape sequence is being sent to terminal when adding keybinds.. #861

vinoff opened this issue Dec 27, 2024 · 1 comment

Comments

@vinoff
Copy link

vinoff commented Dec 27, 2024

I have the following keybinds:

[bindings]
keys = [
   { key = "PageUp", with = "control", action = "SelectPrevTab" },
   { key = "PageDown", with = "control", action = "SelectNextTab" },
]

Now, whenver I press ctrl+pageup (same for ctrl+pgdown), I get the sequence [5;5~] in the keyboard ([6;5~] when pressing page down.)

The bind itself works, as in, I get the prev/next tab. But that still shows up on the keyboard. Any way around that?

@raphamorim
Copy link
Owner

hey @vinoff sorry the late reply on that issue

basically

[bindings]
keys = [
   { key = "PageUp", with = "control", action = "SelectPrevTab" },
   { key = "PageDown", with = "control", action = "SelectNextTab" },
]

this is what you did and it is correct, should be enough but rio isn't ignoring the old pageup and pagedown keys, so isn't overwritting is actually extending.

the hack fix for now

[bindings]
keys = [
   { key = "PageUp", with = "control", action = "None" },
   { key = "PageDown", with = "control", action = "None" },
   { key = "PageUp", with = "control", action = "SelectPrevTab" },
   { key = "PageDown", with = "control", action = "SelectNextTab" },
]

it's lame i know but hadn't have time to fix it yet :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants