mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 14:49:59 +00:00
Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>
Changes to be committed:
This commit is contained in:
parent
6e1287202a
commit
11b19c1d32
@ -374,9 +374,11 @@ bool JsKeyboardDelegateSetting::OnKeyEvent(int32_t keyCode, int32_t keyStatus)
|
|||||||
}
|
}
|
||||||
napi_value global = nullptr;
|
napi_value global = nullptr;
|
||||||
napi_get_global(item->env_, &global);
|
napi_get_global(item->env_, &global);
|
||||||
napi_value result;
|
napi_value result = nullptr;
|
||||||
napi_status callStatus = napi_call_function(item->env_, global, callback, 1, args, &result);
|
napi_status callStatus = napi_call_function(item->env_, global, callback, 1, args, &result);
|
||||||
napi_get_value_bool(item->env_, result, &isResult);
|
if (result != nullptr) {
|
||||||
|
napi_get_value_bool(item->env_, result, &isResult);
|
||||||
|
}
|
||||||
if (isResult) {
|
if (isResult) {
|
||||||
isOnKeyEvent = true;
|
isOnKeyEvent = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user