refactor(linux): Use km_core_state_context_set_if_needed#10354
refactor(linux): Use km_core_state_context_set_if_needed#10354ermshiperete merged 3 commits intomasterfrom
km_core_state_context_set_if_needed#10354Conversation
User Test ResultsTest specification and instructions
Test Artifacts
|
Also update comment on `km_core_state_context_set_if_needed` to make it clearer that it's expecting a UTF-16 string. Closes #10212.
4f7ec73 to
9b768c5
Compare
mcdurdin
left a comment
There was a problem hiding this comment.
With non-compliant apps, how do we reset the context when the user switches focus?
We call Which raises another question: should we rename this to Another option instead of calling |
We can let this wait until 18.0.
I'm not 100% sure that will be correct with #10100. I think the explicit clear of context is safer. |
| km_core_context_items_dispose(context_items); | ||
| g_message("%s: current context is:%zu:%zu:%s:", __FUNCTION__, km_core_context_length(context), buf_size, current_context_utf8); | ||
| return current_context_utf8; | ||
| static gchar * |
Relates to #10365. Use `km_core_state_context_clear()` instead of `km_core_context_clear()` as part of eliminating use of `km_core_state_context()`.
Turns out it already exists! I added it not long ago. See #10370. |
…context_clear_1 refactor(core): use `km_core_state_context_clear` where possible
|
Changes in this pull request will be available for download in Keyman version 17.0.243-alpha |
Also update comment on
km_core_state_context_set_if_neededto make it clearer that it's expecting a UTF-16 string.Closes #10212.
User Testing
Preparations
The tests can be run on any Linux platform
Install build artifacts of this PR
Reboot
Tests
Tests
n>. Verify that the result is "ŋ".n>. Verify that the result is "ŋ".han<space>geul<space>. Verify that the result is "한글".han<space>geul<space>. Verify that the result is "한글".xEjmr. Verify that the output is "ខ្មែរ".xEjmr. Verify that the output is "ខ្មែរ".n>