Weird space bug on Linux

Hello, I am experiencing a bug wherein if I press backspace after inserting space, it’s not deleted, but instead the last character before the space is, and the space remains after the char. It is also dependent on the number of times I press space: if I insert many spaces and press bksp, the last character before the string of spaces disappears, but not the string. And the cursor is moved to before the string. I have recorded this behavior.
scriinrec-2025-03-04_19.58.58
It happens with every Keyman keyboard that I use. If someone knows how to fix this so that they start behaving normally, i.e. the backspace deletes only 1 previous character, I would be grateful.
OS: Linux Mint 21.3 Cinnamon
Keyman version: 17.0(.335-1~sil1~jammy(?))
Also when I want to launch Keyman only Keyman Configuration shows up in the app menu, in case this info is somehow relevant.

Hello, I am experiencing a bug wherein if I press backspace after inserting space, it’s not deleted, but instead the last character before the space is, and the space remains after the char. It is also dependent on the number of times I press space: if I insert many spaces and press bksp, the last character before the string of spaces disappears, but not the string. And the cursor is moved to before the string. I have recorded this behavior.

scriinrec-2025-03-04_19.58.58 (1)

It happens with every Keyman keyboard that I use. If someone knows how to fix this so that they start behaving normally, i.e. the backspace deletes only 1 previous character, I would be grateful.
OS: Linux Mint 21.3 Cinnamon
Keyman version: 17.0(.335-1~sil1~jammy(?))
Also when I want to launch Keyman only Keyman Configuration shows up in the app menu, in case this info is somehow relevant.

Hello @EberhardBeilharz,

Would you be able to reproduce this behavior of Keyman keyboards on Linux Mint 21.3 Cinnamon?

Thank you!

I’ll take a look - it will be a few days until I’ll get to it though.

1 Like

Tracking this as #13522.

Also, forgot to mention, I use IBus

@kirdel I can’t reproduce this behavior, it’s working fine for me in a virtual machine with Linux Mint 21.3.

What application are you using? Which Keyman keyboard?
Is it still happening after a reboot?
Also, please run the following commands in a terminal and paste the output here:

dpkg -l | grep ibus
echo $XDG_SESSION_TYPE

Thanks!

The output is:

(username)@(computer name):~$ dpkg -l | grep ibus
ii  gir1.2-ibus-1.0:amd64                         1.5.26-4sil2.1.1~jammy                      amd64        Intelligent Input Bus - introspection data
ii  ibus                                          1.5.26-4sil2.1.1~jammy                      amd64        Intelligent Input Bus - core
ii  ibus-chewing                                  1.6.1-2                                     amd64        Chewing engine for IBus
ii  ibus-clutter:amd64                            0.0+git20090728.a936bacf-7                  amd64        ibus input method framework for clutter
ii  ibus-data                                     1.5.26-4sil2.1.1~jammy                      all          Intelligent Input Bus - data files
ii  ibus-gtk:amd64                                1.5.26-4sil2.1.1~jammy                      amd64        Intelligent Input Bus - GTK2 support
ii  ibus-gtk3:amd64                               1.5.26-4sil2.1.1~jammy                      amd64        Intelligent Input Bus - GTK3 support
ii  ibus-gtk4:amd64                               1.5.26-4sil2.1.1~jammy                      amd64        Intelligent Input Bus - GTK4 support
ii  ibus-keyman                                   17.0.334-1~sil1~jammy                       amd64        Keyman engine for IBus
ii  ibus-pinyin                                   1.5.0-6.1ubuntu22.04.1                      amd64        Pinyin engine for IBus
ii  ibus-rime                                     1.5.0-1                                     amd64        Rime Input Method Engine for IBus
ii  ibus-sunpinyin                                2.0.3+git20181120-5build1                   amd64        sunpinyin engine for ibus
ii  ibus-table                                    1.16.7-1                                    all          table engine for IBus
ii  ibus-table-cangjie3                           1.8.2-3                                     all          ibus-table input method: CangJie3
ii  ibus-table-cangjie5                           1.8.2-3                                     all          ibus-table input method: CangJie5
ii  ibus-table-quick-classic                      1.8.2-3                                     all          ibus-table input method: Quick Classic
ii  ibus-table-wubi                               1.8.2-3                                     all          ibus-table input method: Wubi
ii  libgusb2:amd64                                0.3.10-1                                    amd64        GLib wrapper around libusb1
ii  libibus-1.0-5:amd64                           1.5.26-4sil2.1.1~jammy                      amd64        Intelligent Input Bus - shared library
ii  libusb-1.0-0:amd64                            2:1.0.25-1ubuntu2                           amd64        userspace USB programming library
ii  libusbmuxd6:amd64                             2.0.2-3build2                               amd64        USB multiplexor daemon for iPhone and iPod Touch devices - library
ii  python3-ibus-1.0                              1.5.26-4sil2.1.1~jammy                      all          Intelligent Input Bus - introspection overrides for Python (Python 3)
(username)@(computer name):~$ echo $XDG_SESSION_TYPE
x11

As far as I know, it only happens in LibreOffice, though I use it often, therefore it still is a problem. Other apps are unaffected. The keyboard in the GIF is made by me, converted from an MSKLC layout, but the bug happens with every Keyman keyboard, regardless of how many times I reboot. It must be some clash between LO and Keyman then.

Thanks for the information. I can reproduce the issue in LibreOffice Writer.

This looks like a bug in LibreOffice. I created a bug report in the LibreOffice bugtracker: 165920 – EDITING: delete surrounding text deletes wrong characters if line ends with trailing whitespace