You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While we could extend API to expose more operation, in terms of "commit preedit", it can be tricky to initiate such operation from out side because there is no such logic in fcitx.
The best thing you could do would be like (pseudo code).
if fcitx.capabilityFlags & fcitx.CapabillityFlag.Preedit != 0 then
preedit = fcitx.preedit()
else
preedit = fcitx.clientPreedit()
end
fcitx.commitString(preedit)
fcitx.reset()
Just to let you know ahead. It can cause bug because there are some input method do their own "commit preedit" upon reset, but in most case it should be OK.
The best thing you could do would be like (pseudo code).
I would be happy API presented in pseudo code was implemented in fcitx5-lua.
Just to let you know ahead. It can cause bug because there are some input method do their own "commit preedit" upon reset, but in most case it should be OK.
Thank you for the information.
I plan to add a "commit preedit" flag(confCommitPreedit) to my addon in case it conflicts with "preedit commit" from the input method.
Thank you for developing.
I updated from Fcitx to Fcitx5 a few days ago.
Currently used with mozc. It works very well.
I have some questions and requests.
Background
I have developed Addon for Fcitx(Fcitx4).
https://github.com/hankei6km/fcitx-at-esc
This addon doesn't work with Fcitx5, so I want to develop a new addon with Lua.
The main features of addon that are planned are as follows.
Execute the following when ESC is pressed.
I wrote the following code, but couldn't get the preedit status.
Question
Feature request
It would be helpful if the following features were implemented.
or
The text was updated successfully, but these errors were encountered: