For GDK_HYPER_MASK, gtk_im_context_filter_keypress() falsely reports that IM handled the event

Bug #1864561 reported by Bjorn Hassler
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ibus
Unknown
Unknown
gtk+3.0 (Ubuntu)
New
Undecided
Unassigned
ibus (Ubuntu)
New
Undecided
Unassigned

Bug Description

If the keypress event contains GDK_HYPER_MASK as a modifier, gtk_im_context_filter_keypress() returns true, reporting that the IM handled the event, even though it did not, therefore it should return false.

Background: We are working on modifying Gnome-Terminal / libvte-2.91.so.0 to enable Terminal-bespoke remapping of modifier keys. This is to facilitate OS X users to migrate to Ubuntu. (Discussion here: #220. Background and unsuccessful alternative approaches detailed here: https://github.com/bjohas/Ubuntu-keyboard-map-like-OS-X/blob/master/README.md).
When we replace GDK_CONTROL_MASK by GDK_HYPER_MASK, the input method (ibus) reports that it handled the event that had Hyper as the modifier. When we use export GTK_IM_MODULE=xim, the Hyper modifier is passed as expected.

We believe that this is a bug in ibus XOR gtk. Unfortunately I'm not sure whether this is an issue in ibus or gtk, so I'm reporting it in both places (as well as upstream). Apologies for the inconvenience caused by this. Many thanks for looking at this.

I'll track updates here
https://gitlab.gnome.org/GNOME/gnome-terminal/issues/220
and here
https://github.com/bjohas/Ubuntu-keyboard-map-like-OS-X/blob/master/Building%20a%20Gnome-Hyper-Terminal.md
so that people compinging Gnonme Terminal are aware of the status.

Many thanks!

Revision history for this message
Bjorn Hassler (bjohas) wrote :

Hello all,
any updates or thoughts on this?
Many thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.