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
Setting Scroll_Lock to 'On' messes up input #102
Comments
Which modifier keys are considered when matching key bindings is specified here: https://github.com/mike-fabian/ibus-table/blob/master/engine/it_util.py#L55 So currently Caps Lock and Num Lock are ignored when matching key events. (For example it should not matter whether Caps Lock or Num Lock are on or not when typing “4” this should select candidate number 4 no matter whether Caps Lock or Num Lock are on or not.) Surely Scroll Lock should be added to that list. So I think this fixes the problem:
I already tested that this fixes it for me. Now I only wonder whether I can be sure that MOD3 is always Scroll Lock and never something else ... https://github.com/mike-fabian/ibus-table/blob/master/engine/it_util.py#L335 has stuff like
The “Usually” worries me a bit, I hope this is never different ... |
How about the Space doubling problem? Does this change fixes that as well? |
From the conversation here: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/194 it seems to me that Mod3 should in fact be Scroll_Lock. I just don't know why it isn't enabled by default. By default Mod3 is just empty. But every tutorial online that I could find that teaches how to enable Scroll_Lock on Linux says to use |
It seems that Xorg people realize this problem (bug) exists and maybe in the future they will find time to make sure Scroll_Lock is set to Mod3 by default. At least that's what I understood from that freedesktop.org issue. |
That issue was originally created five years ago... So I doubt it will be fixed any time soon. But at least I think we can be sure that Mod3 isn't supposed to be used for anything other than Scroll_Lock. |
Yes. |
New ibus-table-1.16.6 builds for Fedora with the scroll lock fix are here: https://copr.fedorainfracloud.org/coprs/mfabian/ibus-table/builds/ |
Awesome! I'm glad it turned out to be quite an easy fix. I thought it would be something dreadfully complex. (Or maybe you're just a genius programmer, who knows :) |
How to reproduce:
xmodmap -e "add mod3 = Scroll_Lock"
.Result: You cannot use ibus-table properly anymore. Space now doesn't only confirm input but also types an actual space. Choosing a variant with numbers doesn't work either.
Tested on Ubuntu and Manjaro, Xorg version, GNOME 41. Linux kernel v. 5.15. Tested with ibus-table-cangjie5.
The text was updated successfully, but these errors were encountered: