Skip to content

Commit 4239d32

Browse files
authored
caret blink on keyboard (#51)
1 parent 72fef59 commit 4239d32

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

entry/src/main/cpp/webkeyboard/webkeyboard.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ void WebKeyboard::update(UserInterfaceComponent component, InputContext *inputCo
3333
const InputPanel &inputPanel = inputContext->inputPanel();
3434
auto auxUp = instance_->outputFilter(inputContext, inputPanel.auxUp()).toString();
3535
auto preedit = instance_->outputFilter(inputContext, inputPanel.preedit()).toString();
36-
notify_main_async(json{{"type", "PREEDIT"}, {"data", {{"auxUp", auxUp}, {"preedit", preedit}}}}.dump());
36+
notify_main_async(
37+
json{{"type", "PREEDIT"},
38+
{"data", {{"auxUp", auxUp}, {"preedit", preedit}, {"caret", inputPanel.preedit().cursor()}}}}
39+
.dump());
3740
if (const auto &list = inputPanel.candidateList()) {
3841
const auto &bulk = list->toBulk();
3942
if (bulk) {

0 commit comments

Comments
 (0)