Bug 250208 - [GTK] delete surrounding text doesn't seem to work
Summary: [GTK] delete surrounding text doesn't seem to work
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL: https://github.com/keymanapp/keyman/i...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-06 07:49 PST by ermshiperete
Modified: 2023-01-06 16:15 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ermshiperete 2023-01-06 07:49:36 PST
It seems that deleting surrounding text doesn't work when typing with an IME that makes use of surrounding text, e.g. ibus-engine-keyman (https://keyman.com).

Ubuntu 22.04 with Gnome Shell and X11, but also in other Ubuntu versions.

To reproduce:

- install Keyman 16.x together with the patched version of ibus from https://launchpad.net/~keymanapp/+archive/ubuntu/keyman-beta
- start km-config and download Vietnamese Telex keyboard
- in km-config in the Download dialog, switch to Vietnamese Telex keyboard and type `boo`
- alternatively, start WebKit minibrowser, load a webpage with a textfield (e.g. https://www.editpad.org/) and type `boo` (with Vietnamese Telex keyboard active)

Expected result:
`bô`

Actual result:
`boô`

Note that in the minibrowser things work correctly in the address bar, but not on a webpage.

When typing the second `o` Keyman sends the delete-surrounding signal to delete the first `o` (one character to the left of the IP) and then adds the `ô`.

Maybe relevant: 
https://bugs.webkit.org/show_bug.cgi?id=205716
https://bugs.webkit.org/show_bug.cgi?id=206352

See also: https://github.com/keymanapp/keyman/issues/7971