FS#70205 - [gtk3] Typing an apostrophe in gtk3 apps turns into a backtip/diacritic
Attached to Project:
Arch Linux
Opened by Hugo Osvaldo Barrera (hobarrera) - Monday, 29 March 2021, 10:37 GMT
Last edited by Jan de Groot (JGC) - Monday, 10 May 2021, 08:06 GMT
Opened by Hugo Osvaldo Barrera (hobarrera) - Monday, 29 March 2021, 10:37 GMT
Last edited by Jan de Groot (JGC) - Monday, 10 May 2021, 08:06 GMT
|
Details
Description:
This is a regression. I initially found this issue on Firefox, but it seems it also applies to Electron (and apparently, other GTK3 apps). I use a keyboard layout of English International. From my sway config: ``` input type:keyboard { xkb_layout us xkb_variant intl xkb_numlock enable } ``` Formerly, if I pressed ' and then space I got an apostrophe: ' Now, if I press ' and then space it prints a forward tick: ´ (Pressing space is necessary with English Intl because if I press ' and then the letter a, I get this: á. This is by design.) It no longer seems possible to type single quotes in Firefox, so I can´t write things like this sentence any more (note there´s a forward tick instead of an apostrophe is wrong!) Last known working package version: 1:3.24.27-4 Failing package version: 1:3.24.28-1 Note that a recent update already had _other_ changes to typing these characters, but the changes were subtle and had simple workarounds. This new set of changes has no workaround. |
This task depends upon
Closed by Jan de Groot (JGC)
Monday, 10 May 2021, 08:06 GMT
Reason for closing: Fixed
Additional comments about closing: 3.24.29 reverts the changes, should be fixed.
Monday, 10 May 2021, 08:06 GMT
Reason for closing: Fixed
Additional comments about closing: 3.24.29 reverts the changes, should be fixed.
```
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbVariant" "intl"
EndSection
```
Digging into gtk repository shows some specific handling of the "apostrophe then space" combo at https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3330 (and for 4.x https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3329) which leads to this issue https://gitlab.gnome.org/GNOME/gtk/-/issues/3778
My 00-keyboard.conf is simply
```
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbVariant" "alt-intl"
EndSection
```
```
<dead_acute> <space> : "'"
<dead_acute> <dead_acute> : "´"
```
https://blog.gtk.org/2021/03/24/input-revisited/
The actual "single quote" (or "apostrophe") can be typed with RightAlt+' .
The word "annoying" doesn't say it all.
GIMP seems to be unaffected, though.
- with `gtk3-1:3.24.27-4`: `~` + `space` prints `~`
- with `gtk3-1-3.24.28-1`: `~` + `space` prints a space (or at least something rendered as a space)
Is this behavior related to the current thread, or would it be worth creating a new issue?
I'm sticking to `gtk3-1:3.24.27-4` for now.
cf. https://gitlab.gnome.org/GNOME/gtk/-/issues/3807#note_1070295
sudo pacman -U /var/cache/pacman/pkg/gtk3-1\:3.24.27-4-x86_64.pkg.tar.zst
to downgrade and then added:
IgnorePkg = gtk3
to /etc/pacman.conf to blacklist gkt3 from further upgrades.