FS#75911 - [gtk4] can't enter diacritics since 4.8.0

Attached to Project: Arch Linux
Opened by Jake Dane (jakedane) - Wednesday, 14 September 2022, 19:58 GMT
Last edited by Toolybird (Toolybird) - Friday, 23 September 2022, 20:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Since updating gtk4 to 4.8.0 I can't enter diacritics in GTK4 apps with the compose key. I have US keyboard layout without dead keys and have set Right Ctrl as my compose key. With gtk4 4.8.0 entering text in a GTK4 app it ignores the compose key.

The same issue does not happen on Fedora 37 beta which also has gtk 4.8.0.

Nor when I install the GTK4 app from the gnome-nightly flatpak, which also has gtk 4.8.0.

Additional info:
* gtk4 version: 1:4.8.0-1
* desktop environment: Gnome Shell 42.4, on Wayland
* upstream related discussion: https://discourse.gnome.org/t/gtkentry-cannot-put-an-accent-marks-on/11128

Steps to reproduce:
1. Upgrade gtk4 to 4.8.0
2. Open a GTK4 app where you can input text, whether in a text entry field or in a search field. For example Characters (gnome-characters), Fonts (gnome-font-viewer), GTK Demo (from gtk4-demos) or Text Editor (gnome-text-editor [AUR]).
3. Try to type `á`. I do that by pressing compose key+`'`, then `a`. That should combine it to `á` but instead it types `'a`.

After downgrading gtk4 to 4.6.7 step 3 works as expected and types `á` instead of `'a`.
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 23 September 2022, 20:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  gtk4 1:4.8.1-1
Comment by Jake Dane (jakedane) - Thursday, 15 September 2022, 05:17 GMT
Backporting https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5012 to 4.8.0 solves the issue.

This should solve the issue for compose key and for dead keys.
Comment by Jake Dane (jakedane) - Thursday, 15 September 2022, 17:37 GMT
It will be fixed in gtk4 4.8.1: https://gitlab.gnome.org/GNOME/gtk/-/issues/5176#note_1552456

I don't know when that will be out. May still be desirable to backport MR 5012 to 4.8.0 so diacritics work in GTK4 apps.

Loading...