Fix Emits of Additional ANSI Characters - #4991
schrieveslaach wants to merge 1 commit into
Conversation
|
This does not catch all possible keys that should be silent. For example, using the neo layout, I can press (there are also a few typos in the comment in the code) |
|
@op3, thanks for testing. Do you see more missing keys? If not, I would update my PR with the aforementioned missing keys. |
|
So, Another key combination that should not result in any characters is Obviously, this is much less of a problem than the modifier keys, because one would usually not press this key combination. Still, I would consider this to be incorrect behavior. And adding “4” to the list of exceptions also does not feel right (too specific …). There are a few more unassigned key combinations. The W, A, and Z keys on layer 5 come to mind. |
5b56c5e to
9992d59
Compare
|
@wez, does this fix provide a solution that you would consider to be merged? |
|
Thanks for this; only just getting around to looking at it. |
|
Can we include ISO_Level3_Latch and ISO_Level5_Latch for Ergo-L layout (https://ergol.org/)? 🙏
Russian layout mentioned in #4910 is still working with this PR. |
9992d59 to
8d41379
Compare
|
@wez, sorry for the late response.
I couldn't find any issue when using the regular German layout and the behavior with and without my fix is the same. @tsacha, I also included ISO_Level3/5_Latch |
8d41379 to
38ecc38
Compare
|
@wez This PR works with ergol so merging it would be great ! |
38ecc38 to
ad8e8f9
Compare
|
What can be done to speed up the merging of this request? As far as I can tell, this will help solve the problem I and a handful of others are having. So if there is anything I can do, please let me know. |
|
I'd like to chime in that while this patch is an improvement (and I would love to see it landed), I think more generally it should handle all modifiers this way. Eg. in my keyboard layout as mentioned in #6518 (comment) the problem also happens with Hyper_L and Hyper_R. |
ad8e8f9 to
ff65716
Compare
|
@willghatch, thanks for the information. I updated the PR and also use now an existing method of xkbcommon. @wez, any chance to review this PR because it is very minimal now? |
|
I've been using the old version of this patch, plus a couple lines for hyper keys, for over a month now. This new version looks even better. I'll switch to using it, and I hope it can land. |
This comment was marked as resolved.
This comment was marked as resolved.
|
I'm an idiot. I forgot to change the branch to It works perfectly. I'll use this branch until it is hopefully merged. Thank you so much. |
|
Small ping again, is there anything you want us to test/assert in order to merge this? The patch is small in size but it's impact is almost infinitely huge for me (and a few others, probably) |
|
As an update to my previous comment, I've been using wezterm with the current version of this patch since March. With my keyboard layout, Wezterm is basically unusable without this patch, but this patch fixes the problem. This patch makes a huge impact for people who use the popular NEO keyboard layout or a custom keyboard layout on Linux. This patch is solid gold. Note that this patch fixes #6518 as well as #4975 since they are duplicates. |
|
Hi all, Any news on this? I'm using the |
ff65716 to
c34e7af
Compare
|
The issue still persists on main. I rebased this branch and tested again that this change fixes the issue. @wez, do you mind to have a quick look and maybe merging it? |
|
This also seems to fix #5866 for me, fwiw! |
This commit ensures that ANSI chars won't be emitted when pressing non-standard modifier keys. Fixes wezterm#4975
c34e7af to
761389b
Compare
|
@bew, I noticed that you labeled the PR with X11 and that made me realize that the code change is related to the X11 subsystem (totally forgot about it). However, I'm running wezterm under Wayland (GNOME has no x11 session anymore). Is the label wrong or should I investigate why the code is used on Wayland too? |
|
I think my earlier scan of the code showed that the same code was used on Wayland, resulting in fixing the issue for me on Wayland. I seem to recall I came to this conclusion by going up the chains of callers via LSP, fwiw |
This commit ensures that ANSI chars won't be emitted when pressing non-standard modifier keys.
Fixes #4975