mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2025-03-06 22:19:31 +00:00
commit
f33853cba3
@ -76,7 +76,7 @@ napi_value JsTextInputClientEngine::MoveCursor(napi_env env, napi_callback_info
|
||||
}
|
||||
};
|
||||
ctxt->SetAction(std::move(input));
|
||||
AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(ctxt), 0);
|
||||
AsyncCall asyncCall(env, info, std::dynamic_pointer_cast<AsyncCall::Context>(ctxt));
|
||||
return asyncCall.Call(env, exec);
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ struct SendKeyFunctionContext : public AsyncCall::Context {
|
||||
};
|
||||
|
||||
struct MoveCursorContext : public AsyncCall::Context {
|
||||
bool num = false;
|
||||
int32_t num = 0;
|
||||
napi_status status = napi_generic_failure;
|
||||
MoveCursorContext() : Context(nullptr, nullptr){};
|
||||
MoveCursorContext(InputAction input, OutputAction output) : Context(std::move(input), std::move(output)){};
|
||||
|
@ -739,6 +739,7 @@ namespace MiscServices {
|
||||
property.descriptionId = applicationInfo.descriptionId;
|
||||
property.label = Str8ToStr16(labelString);
|
||||
property.description = Str8ToStr16(descriptionString);
|
||||
properties.emplace_back(property);
|
||||
}
|
||||
return properties;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user