add select

Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
zhaolinglan 2023-02-06 21:47:34 +08:00
parent 96cf24e5c0
commit 4481e373ee

View File

@ -38,6 +38,8 @@ napi_value JsTextInputClientEngine::Init(napi_env env, napi_value info)
DECLARE_NAPI_FUNCTION("getBackward", GetBackward),
DECLARE_NAPI_FUNCTION("getEditorAttribute", GetEditorAttribute),
DECLARE_NAPI_FUNCTION("moveCursor", MoveCursor),
DECLARE_NAPI_FUNCTION("selectByRange", SelectByRange),
DECLARE_NAPI_FUNCTION("selectByMovement", SelectByMovement),
};
napi_value cons = nullptr;
NAPI_CALL(env, napi_define_class(env, TIC_CLASS_NAME.c_str(), TIC_CLASS_NAME.size(), JsConstructor, nullptr,