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
Can't type a backtick/tilde `/~ on Linux #7
Comments
Does it work if you '~' followed by 'space'? The next stroke decides if it adds a '~' or for example 'ã','ẽ', ... |
Oh, yes, it seems to act as if preceded by the compose key. |
I'm not sure how to detect if a user setup uses a compose key and has keys like tilde be printed directly. Leaving here the reference where the current behavior is implemented. editor/util/uiutil/widget/applyevent.go Line 43 in 0984e17
|
So apparently there's an implementation of something in Xlib (which XCB/xgb don't use), and then all the GUI frameworks like GTK/Qt implement something. What a mess. For what it's worth, this patch seems to make it behave like your average US keyboard user would expect (except that compose key inserts some literal character, doesn't compose):
|
Yes, I suspected that was your use case. Need to investigate this further. |
event: Separate diacritics code into new file.
@tv42 I hope the compose key is now correctly detected if you use the "usemultikey" cmd line option. I don't have a way to completely test this here so appreciate your feedback. It would either be this or implement something like you mentioned that could include reading config files. |
So I was able to test this (simulate a US keyboard) with: Running the editor with the
Going to consider that this was fixed by b6828a7 |
I can type with most keys fine but the key on the upper left under escape (US qwerty) that produces backtick and tilde does nothing. Ubuntu Linux, nothing really weird done with that part of my keyboard settings.
The text was updated successfully, but these errors were encountered: