alacritty: Can't input "@" on German keyboard with
I’m using alacritty on Windows with WSL via wslbridge (from wslttz 1.9.3)
On my Windows laptop I’ve got a German keyboard layout which has the right <alt>
key called <AltGr>
and that is used to input "@"
via <AltGr> + <Q>
. However in alacritty that combination does nothing.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 11
- Comments: 32 (6 by maintainers)
Commits related to this issue
- Update glutin to version 0.20 Fixes #458. Fixes #1681. — committed to alacritty/alacritty by chrisduerr 5 years ago
Indeed, this works for me when
alt_send_esc: false
is set.Thank you to everyone involved.
It certainly applies to macOS (10.13.x).
Can confirm that this does not work with norwegian layout as well. Norwegian layout
Same here on French Azerty, none of the AltGr combinations are working
OMG. I’am very sorry, but i’ve posted to the wrong repo -.-.
Forget what i was asking for. SORRY!
I got a bit further with this today while playing around with Alacritty on OS X again. It’s not correct that the AltGr + 3 key combination does nothing at all – I tried entering it in an Alacritty terminal containing a text-mode emacs instance, and emacs thought I’d entered
M-#
.This suggests that AltGr + 3 is correctly yielding a
#
character, but with the Alt modifier incorrectly applied. Running with--print-events
shows this happening:For now I’ve added the following keybinding to my config as a temporary fix:
This works, but is not ideal because it doesn’t differentiate between Right and Left Alt. Left Alt + another key should produce that key plus the Alt modifier; Right Alt plus another key should not.
Sorry it took me a bit to test this, I only have a Windows at work. I’m getting the following output for pressing
<Alt Gr> <Q>
on a German keyboard with Alacritty v0.2.5 and--print-events
. This is in PowerShell where an “@” is actually printed which makes me think that your reasoning for an invalid escape code may be spot on. I usually only develop software on Linux but I can try compiling Alacritty on Windows with your debug patches if it is important.I’ve created https://github.com/tomaka/winit/issues/756 for evaluating an upstream change to resolve this problem. There are alternative ways on how this can be resolved without requiring a change to winit, but I’d like to investigate an upstream approach first.
Oh, that changes everything. So there is no
TRIGGERED BINDING
reported when pressingRAlt + L
?If there’s no
CHARACTER HAS BEEN SUPPRESSED
being printed, then this probably isn’t even a keyboard issue but something different entirely. I feel like we’re getting somewhere here. 😄Looking at the key event of the
L
key, the modifieralt
is true. So I’m pretty certain that the problem is that the\x1b
escape sequence is sent before@
is inserted. This results in issues since\e@
is not a valid escape sequence (try runningecho -e "\e@"
and you’ll see nothing gets printed).From what I can tell we might need to fix this upstream and add a way to differentiate between AltGr and Alt as modifiers. Thanks for your help, this is likely the same on Windows! I’ll think about possible work arounds and open an issue upstream (and link it here) if I don’t find a solution.