Skip to content

Implement invokeAction and commit preedit when click outside the preedit.

Xuetian Weng requested to merge work/preedit into master

Qt support an invokeAction API, which allow application to send a request to input method when click happens on the preedit string. [1]

Also, Qt use QInputMethod::commit to ask input method to commit its preedit. Similar approach [2] is used by Qt built-in Text edit widget.

[1] https://github.com/qt/qtbase/blob/40143c189b7c1bf3c2058b77d00ea5c4e3be8b28/src/widgets/widgets/qwidgettextcontrol.cpp#L1899 [2] https://github.com/qt/qtbase/blob/v5.15.2/src/widgets/widgets/qwidgettextcontrol.cpp#L1607

Merge request reports

Loading