https://bugs.kde.org/show_bug.cgi?id=520990

            Bug ID: 520990
           Summary: xdg-desktop-portal-kde keyboard input conflicts with
                    CJK IME when using a virtual keyboard
    Classification: Plasma
           Product: xdg-desktop-portal-kde
      Version First 6.6.5
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 192838
  --> https://bugs.kde.org/attachment.cgi?id=192838&action=edit
keyboard layout

DESCRIPTION
This is a follow-up to bug 489021, reporting on behalf of @minortex.

The previous bug 489021 fixed keysym translation through xdg-desktop-portal-kde
with non-standard keyboard layouts, which was broken with the WIP KeePassXC
Wayland Autotype and with KDE Connect, possibly among others. But more work is
still needed for correct IME/CJK support.

The original report for this issue is at
https://github.com/keepassxreboot/keepassxc/pull/13359#issuecomment-4508021701
:

> Some problems occured when I use the fcitx5 input method.
> This affects CJK users first, but the same class of issue may affect other 
> IMEs,
> non-US layouts, or virtual keyboard setups.
> 
> J5KZUJ`z24dk@VdLo%S_r # original password
> j%kZUJ~z24dk2VDlO5S_R # keepassxc inputted
> 
> Confirmed that keyboard-us layout is selected. It looks like fcitx5 receives 
> the
> virtual keyboard events and corrupts or delays modifier state. Besides, after
> the auto-type operation, my shift key is pressed but not released properly.
> 
> I tried Fcitx5 wayland launcher or Fcitx5 in Virtual Keyboard of KDE settings,
> neither works.
> When I switch to none, it works, so seem to be a IM compatibility problem.

See attachments.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.1
Kernel Version: 7.0.9-zen1-1-zen (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
https://github.com/keepassxreboot/keepassxc/pull/13359#issuecomment-4513701330
:

> I tested three entirely different virtual keyboard backends in KDE system 
> settings:
>   1. fcitx5 -> bug recurs.
>   2. ibus -> bug recurs.
>   3. plasma virtual keyboard (KDE's native osk) -> bug recurs.
> 
> Since the same modifier/Shift corruption happens across all three frameworks, 
> this
> is definitively a KDE/KWin/Portal bug, not an fcitx5 issue.

https://github.com/keepassxreboot/keepassxc/pull/13359#issuecomment-4524478681
:

> (The previous bug 489021) solved the problem that European/American keyboard
> with different key places. But they don't take virtual keyboard into 
> consideration.
> 
> It's necessary to explain how the IME works:
> 
>    1. user types raw alphanumeric keys to form an input sequence representing
>       the pronunciation(e.g. Pinyin)
>    2. the IME intercepts these keys and buffers them into a pre-edit string.
>    3. the IME dynamically maps the input sequence to matching ideographs and
>       displays them in a floating candidate window.
>    4. the user types a number key to select the intended ideograph from the
>       candidates.
>    5. finally the IME commits the selected text, sending the actual ideographs
>       into the active text field.
> 
> In KDE, simulating keyboard input will conflict with IME, because IME will 
> process
> the original key input, which causes the problem.

The user implemented a workaround using a helper script to temporarily disable
IME:
https://github.com/keepassxreboot/keepassxc/pull/13359#issuecomment-4516791073

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to