Is your feature request related to a problem? Please describe.
Currently APIs like chewing_buffer_String() and chewing_commit_String() will return the same data every time until next keystroke. To avoid output string repeatedly or display stale data IMEs have to remember that there was no new input.
Describe the solution you'd like
Provide an API to mark commit string handled to clear commit buffer
Describe alternatives you've considered
Automatically clear commit buffer after read. This is a breaking change.
Is your feature request related to a problem? Please describe.
Currently APIs like
chewing_buffer_String()
andchewing_commit_String()
will return the same data every time until next keystroke. To avoid output string repeatedly or display stale data IMEs have to remember that there was no new input.Describe the solution you'd like
Provide an API to mark commit string handled to clear commit buffer
Describe alternatives you've considered
Automatically clear commit buffer after read. This is a breaking change.
Additional context
https://github.com/chewing/ibus-chewing/blob/fdd08f4f79f38e3f4c1957926f4f174dae8692e3/src/IBusChewingPreEdit.c#L69-L72