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 unset Unicode code point shortcut (ctrl+shift+u) with GtkIMContextWayland #2512
Comments
IBus binds Ctrl-Shift-u to the Unicode typing in the ibus-extension-gtk3 component by default but the shortcut key can be customized with ibus-setup utility. In case of using GTK_IM_MODULE=wayland, GtkIMContextWayland is activated and the parent class is GtkIMContextSimple which binds the hard-coded Ctrl-Shift-u to the Unicode typing. If ibus-extension-gtk3 does not handle Ctrl-Shift-u, the key is forwarded to GtkIMContextWayland and GtkIMContextWayland sends the key to the parent GtkIMContextSimple .
So it's a GTK issue and cannot be resolved in IBus.
I think the effected applications are GTK only. In case of using GTK_IM_MODULE=ibus, IBusIMContext is activated and If ibus-extension-gtk3 does not handle Ctrl-Shift-u, the key is forwarded to IBusIMContext but IBusIMContext does not handle Ctrl-Shift-u and your issue does not happen. I think you could report your issue to GTK instead so that GTK customize the shortcut key likes IBus. |
Thanks @fujiwarat, good to know what the actual issue is (that I'm using Wayland). Is there a way to force the use of iBus? I tried setting the below in
|
@simondrake: Since you use Wayland, you should not set As regards the other two variables, setting them explicitly is meaningless since they are already set by GNOME. If you drop that stuff from
|
@gunnarhj got it, thanks. So this is just something I need to live with until it's handled in GTK? I'll see if I can find the appropriate place to report it to GTK. |
If you could inform the GTK issue # here, it would be great. |
@simondrake wrote:
You can log in to Ubuntu on Xorg in the meantime. @fujiwarat: I just reported https://gitlab.gnome.org/GNOME/gtk/-/issues/5865 . |
@simondrake Why do you wish to disable Ctrl-Shift-u in the input method? |
@gunnarhj Thank you. |
I'm assuming based on the response that it's by design and they aren't going to support it, but I'll follow it just in case.
@fujiwarat - I don't use it and it's a keyboard shortcut I use in other apps (e.g. |
I can't speak for Simon but for me it is because it conflicts with other application shortcuts that I use in my workflow. |
That's not my interpretation (in that case he would have closed it). I rather take his short reply as a confirmation that it's a valid issue. OTOH we don't know how long it takes before someone starts working on it... |
Entirely possible I didn't interpret it correctly. Hopefully they pick it up at some point. Thanks for raising it. |
@simondrake Sure. @mezpahlan If you know other apps, please let me know them. I think we need to inform your usages to GTK upstream. |
Slack was my example app too. (In the browser if that matters?) |
I think I remember seeing an issue with this shortcut and a Jetbrains IDE, but I don't use them so I can't confirm if that's still the case or if it can be configured differently.
It doesn't. It's the same in browser and in desktop app. |
Here's the issue I remembered seeing - https://youtrack.jetbrains.com/issue/IDEA-112533/Toggle-Case-Ctrl-Shift-U-not-working-under-Gnome-Linux |
Probably I think the suggestion is to ask Slack to have the customization of the shortcut keys. Otherwise you could comment on the GTK issue. |
Sounds like it's not going to get resolved in GTK so it's a matter of live with it, or get Slack to allow the customisation. Thanks for all the help looking into this @fujiwarat, it's very much appreciated. |
Please fill in the following items if you don't know the root cause.
Which distribution and version?:
Ubuntu 22.04
Which desktop environment and version?:
Gnome 42,5
Which session type?:
Wayland
Which application and version?:
All applications
IBus version?:
Issue description:
I'm unsure if this is an ibus issue or an Ubuntu one, but I cannot unset the
Unicode code point
shortcut (ctrl+shift+u
).What I've already tried:
ibus-setup
)Changing the
Keyboard input method system
fromiBus
toXIM
andnone
. I rebooted after each change, butctrl+shift+u
continued to give me the underscoreu
.Restarting/killing the iBus processes (
pkill ibus
)Deleting the shortcut with
gsettings
Weirdly, if I add a shortcut to ibus-preferences it works. For example, I add
ctrl+shift+d
and it acts the same way, but thectrl+shift+u
shortcut doesn't get removed, so it is clearly respecting ibus preferences in some way.https://askubuntu.com/questions/1457596/unable-to-disable-ctrlshiftu-unicode-input-shortcut Is basically my issue, but there are no answers.
Steps to reproduce:
ctrl+shift+u
shortcut, and observe the underscoreu
.Can you reproduce your problem when you restart ibus-daemon? (yes / no):
Yes. The same problem remains.
Do you see any errors when you run ibus-daemon with the verbose option?:
No.
Can you reproduce your problem with a new user account instead of the current your account? (yes / no):
I haven't tried creating a new account, as this doesn't seem to be user specific?
Updates
The problem does not occur when running
env GTK_IM_MODULE=ibus gedit
These are my input sources:
The text was updated successfully, but these errors were encountered: