-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Panic on XF86 keycodes #4125
Comments
This is probably an upstream bug since we indeed don't have helix/helix-view/src/keyboard.rs Lines 157 to 160 in 4d4be0e
|
Looks like this also happens when I press the "Pause" key (different than the play/pause media key) |
@ngraham20 yeah it's a problem with all media control keys, not just play/pause. It's also Mute, Next tack, Previous track, Volume up/down, etc. |
Same issue here, specifically when I use NixOS inside of a Parallels VM with macOS as the host OS, and then proceed to change the volume with my keyboard on macOS. |
@ngraham20 and @cor, are you using kitty as your terminal emulator, too? Or another terminal? |
It seems like we get media play/pause/mute/etc keys despite not emitting DISAMBIGUATE_ESCAPE_CODES(helix-editor#4125). Make crossterm::event::KeyCode a TryInto for KeyCode instead of Into to let us ignore keys we don't care about.
I believe #4576 should keep us from panicking on media keys. Could I get someone experiencing the issue to try that branch? kitty isn't sending media keys through for me, so I wasn't able to repro this. |
It seems like we get media play/pause/mute/etc keys despite not emitting DISAMBIGUATE_ESCAPE_CODES(helix-editor#4125). Make crossterm::event::KeyCode a TryInto for KeyCode instead of Into to let us ignore keys we don't care about.
@groves Just tried it with |
Summary
I know this is kind of an edge case, but if your system does not do anything with volume control/media playback control keys, they pass through to Helix, causing a panic with the following message:
Reproduction Steps
So this wouldn't be too easy if you don't have access to the guts of your operating system and desktop environment or window manager, but with i3 you can edit your config and comment any line that starts with
bindsym XF86____
, save it and reload your config, then in Helix send to your PC (presumably with a keyboard button) the keycode corresponding to what you just commented out.Helix log
The log didn't contain anything in regards to this error
Platform
EndeavourOS Arch Linux with i3-gaps
Terminal Emulator
Kitty
Helix Version
helix 22.08.1 (5dbca0f)
The text was updated successfully, but these errors were encountered: