-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unable to type characters with AltGr modifier #595
Comments
Good catch! Looks like the |
Thanks! I can confirm that AltGr works again as expected in One more issue, though: It does not work in the command line at the bottom (i.e. entering Edit: The same goes for the file picker. |
I'll fix up the Prompt component, it should take care of all the remaining cases :) |
It appears that the fix for prompts in * I think this is a common thing, but I'm not 100% sure I tested it with the following change and I'm now getting the "correct" behaviour. This might need more thought, however... I'm not sure if this breaks other input combinations or works differently on different OS. /* ... */
} if !modifiers.contains(KeyModifiers::CONTROL)
|| modifiers.contains(KeyModifiers::CONTROL | KeyModifiers::ALT) =>
{
self.insert_char(c);
(self.callback_fn)(cx, &self.line, PromptEvent::Update);
}
/* ... */ |
@archseer sorry for pinging but I want to mention again that this issue isn't fully fixed, see my previous comment. Maybe it's better to keep the issue open for now? |
Sorry, I somehow completely missed the last message! Reopening and will take a look at the patch. |
Is there a plan for a patch for this? I understand if Windows is not a priority platform but Helix is a such a great editor and the only select-based editor for Windows AFAIK. The AltGr characters are essential for regex so it would be nice to have it fixed. |
This might also be a crossterm issue, depending on what the expected behavior is. For example, on a german keyboard layout AltGr + q is used to type KeyEvent { code: Char('@'), modifiers: CONTROL | ALT } So on top of the "resolved" character |
Hmm, looks like |
Sorry for the great delay on this, I've removed the limitation on the prompt. |
No worries. I can confirm that it works correctly now 👍 |
helix 22.05 (27609f5) |
@mscofield0 are you experiencing this with writing text or with keybinds? I did notice something, too: I can type characters with AltGr modifier just fine. But key bindings that require this modifier (such as |
Yep, same issue here. Key bindings don't work (normal mode), but typing works just fine. |
Alright, I'll create a new issue for this 👍 |
As of helix 0.4.0 I'm unable to type any characters that require the AltGr modifier key.
This appears to be a regression somewhere between version 0.3.0 and 0.4.0 of helix.
Environment
The text was updated successfully, but these errors were encountered: