Deleted character appears again when switching input sources

I alternate between Meaning and Reading cards and need to switch between Japanese and English very often. Whenever I wrongly start typing in Japanese Mode, I delete the wrong character(s) and switch back to English mode from an empty input field. My problem is that the character I just deleted shows up again.

  1. Switch to Input Source: Japanese (Mozc)
  2. Type a japanese character in Anki
  3. Delete it
  4. Switch back to another layout, for example English (US)

Result: The character you deleted before the input switch appears again

Expected result: Switching between input sources should not bring back characters you have previously deleted

My system: Arch, Gnome 46.4 (Wayland / XOrg), mozc / ibus-mozc 2.30.5544.102

Anki is the only app where I seem to have this problem. I use several other GTK3/GTK4/QT5/QT6 apps and can’t trigger it anywhere else.

It’s a Qt bug. If you’d like to report it to them, please see Report an issue to Qt · Issue #2652 · ankitects/anki · GitHub

Unfortunately I couldn’t reproduce it with Qt Creator (but that does not mean much, I have no previous experience with Qt), but maybe it helps to know that this issue is specific to Qt6.

anki-qt5 (compiled with Qt 5.15.14 / PyQt 5.15.11) from the AUR does not have this problem, but instead all other packages (anki, anki-bin, anki-git) which build on Qt 6.6.2 / PyQt 6.6.1.

You’ll need to build one of the webengine examples, and then build a webpage with a couple of <div contenteditable=true />edit me</a>, as the issue is likely an issue with their Chromium integration.

Finally was able to reproduce it with the Recipe Browser from qt6-examples.

Bug number is QTBUG-127995 (I’m not allowed to share links here).

4 Likes

https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-127995

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.