Bug 426621 - [Wayland] Impossible to type accented characters (ô, ã, é, etc) in Qt5 apps
Summary: [Wayland] Impossible to type accented characters (ô, ã, é, etc) in Qt5 apps
Status: RESOLVED DUPLICATE of bug 411729
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Neon Linux
: HI normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-16 21:17 UTC by Patrick Silva
Modified: 2021-01-26 18:03 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-09-16 21:17:00 UTC
This problem affects both Arch (Plasma 5.19.5) and neon unstable.

SUMMARY
I can type accented characters like ô, ã and é in GTK3 apps running natively on Wayland, but I can't in Qt5 apps like Kate and Featherpad text editors.

STEPS TO REPRODUCE
1. start Wayland session
2. open Kate
3. try to type an accented character like ô, ã, é

OBSERVED RESULT
the typed character appears on the screen without accent

EXPECTED RESULT
we can type accented characters in Qt5 apps running natively on Wayland

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0


ADDITONAL INFORMATION
My keyboard layout is brazilian portuguese

$ localectl
   System Locale: LANG=pt_BR.UTF-8
       VC Keymap: br-abnt2
      X11 Layout: br
       X11 Model: pc105
Comment 1 David Edmundson 2020-09-16 21:18:53 UTC
>I can type accented characters like ô, ã and é in GTK3 apps running natively on Wayland, but I can't in Qt5 apps like Kate and Featherpad text editors.

Then it's almost certainly a Qt bug, not a kwin bug.

But in either case we need to fix it. Could you give me some steps on how it should work?
Comment 2 Patrick Silva 2020-09-16 21:29:52 UTC
This problem already happened before.
In bug 379912 comment 2 I explain how to type an accented character with pt-br keyboard layout.
Comment 3 Patrick Silva 2020-09-17 11:48:40 UTC
bug 411729 seems related/duplicate. Both QT_IM_MODULE= kate and QT_IM_MODULE=xim kate workarounds mentioned in bug 411729 comment 9 work for me.
Comment 4 Patrick Silva 2020-11-17 11:03:22 UTC
*** Bug 393907 has been marked as a duplicate of this bug. ***
Comment 5 Thiago Sueto 2020-11-22 01:09:40 UTC
(In reply to Patrick Silva from comment #3)
> bug 411729 seems related/duplicate. Both QT_IM_MODULE= kate and
> QT_IM_MODULE=xim kate workarounds mentioned in bug 411729 comment 9 work for
> me.

Yeah, this looks like a duplicate of bug 411729 to me. I always have to set the workaround I proposed in bug 411729 comment 9 in my case (also pt_BR) since it's always reproducible.

(In reply to David Edmundson from comment #1)
> But in either case we need to fix it. Could you give me some steps on how it
> should work?

Basically one press of an accent key (such as ~, ^, `, ´) does not make the accent show up standalone like tilde would in a US QWERTY keyboard. If you press any vowel after pressing an accent key, the vowel shows up with the accent, e.g. é, ó, à, õ, ã, â, ê, ô. If instead you press space then the accent shows up. From what I understand the name for such accent keys is "dead key", and if you press AltGr + accent, the accent shows up immediately like tilde would in a US QWERTY keyboard.
Comment 6 Nate Graham 2020-11-23 17:02:23 UTC

*** This bug has been marked as a duplicate of bug 411729 ***