mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 22:59:45 +00:00
commit
886de6b825
@ -22,7 +22,6 @@
|
|||||||
#include "js_input_method_setting.h"
|
#include "js_input_method_setting.h"
|
||||||
namespace OHOS {
|
namespace OHOS {
|
||||||
namespace MiscServices {
|
namespace MiscServices {
|
||||||
// class JsInputMethodSetting;
|
|
||||||
NativeValue *CreateInputMethodSetting(NativeEngine& engine);
|
NativeValue *CreateInputMethodSetting(NativeEngine& engine);
|
||||||
NativeValue *CreateInputMethodController(NativeEngine& engine);
|
NativeValue *CreateInputMethodController(NativeEngine& engine);
|
||||||
}
|
}
|
||||||
|
@ -1221,7 +1221,9 @@ namespace MiscServices {
|
|||||||
sptr<InputClientProxy> client = new InputClientProxy(clientObject);
|
sptr<InputClientProxy> client = new InputClientProxy(clientObject);
|
||||||
sptr<IInputClient> interface = client;
|
sptr<IInputClient> interface = client;
|
||||||
int remainClientNum = 0;
|
int remainClientNum = 0;
|
||||||
imsCore[0]->SetClientState(false);
|
if (imsCore[0] != nullptr) {
|
||||||
|
imsCore[0]->SetClientState(false);
|
||||||
|
}
|
||||||
HideKeyboard(client);
|
HideKeyboard(client);
|
||||||
int ret = RemoveClient(client, remainClientNum);
|
int ret = RemoveClient(client, remainClientNum);
|
||||||
if (ret != ErrorCode::NO_ERROR) {
|
if (ret != ErrorCode::NO_ERROR) {
|
||||||
@ -1241,7 +1243,9 @@ namespace MiscServices {
|
|||||||
MessageParcel *data = msg->msgContent_;
|
MessageParcel *data = msg->msgContent_;
|
||||||
sptr<IRemoteObject> clientObject = data->ReadRemoteObject();
|
sptr<IRemoteObject> clientObject = data->ReadRemoteObject();
|
||||||
sptr<InputClientProxy> client = new InputClientProxy(clientObject);
|
sptr<InputClientProxy> client = new InputClientProxy(clientObject);
|
||||||
imsCore[0]->SetClientState(true);
|
if (imsCore[0] != nullptr) {
|
||||||
|
imsCore[0]->SetClientState(true);
|
||||||
|
}
|
||||||
ShowKeyboard(client);
|
ShowKeyboard(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user