summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-04-30 09:24:53 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-04-30 17:35:53 +0200
commit691c61146d3d627d24fec336550a0d4933549cda (patch)
tree7bf76999e34ddbf35e943e31c64498a2e823706a /vcl
parent62ee743d3c39e45d7fc6e0bdfa51a80e51af0c03 (diff)
tdf#160838 editeng: Report IME cursor pos more reliably
`mpIMEInfos` is set when handling the `CommandEventId::StartExtTextInput` command. However, the cursor position can also be queried without it being set, as seen e.g. at least for the fcitx5 use case from tdf#160838 when using the Qt-based VCL plugins. If no IME Input has happened yet, just use the current selection PaM index as the end index. This makes the fcitx5 language indicator show up at the current cursor position when positioned in a comment in Writer, the Calc input bar or a Math formula and switching the fcitx5 language/keyboard layout using the shortcut with the Qt-based VCL plugins. The correct position had no longer been used after welding, i.e. since commit 69c546e1e7a697217f273baa7c1729ff823efd76 Date: Fri Dec 4 16:30:31 2020 +0000 weld annotation window for Writer comments and since commit e087e25f05e689091cbf1c4f91b6e93878ac17ec Date: Mon Oct 5 14:19:05 2020 +0100 weld InputBar for the Calc input bar. The fact that the indicator shows up at the wrong position before typing any character (e.g. opening Writer, then switching the keyboard layout right away, as mentioend in tdf#160838 comment 2) is a different issue and will be addressed separately. Change-Id: Ibe7698e113cbbea7f273cc929d72ca47fb407a20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166888 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'vcl')
0 files changed, 0 insertions, 0 deletions