MCPcopy Create free account
hub / github.com/EasyIME/PIME / onPreservedKey

Method onPreservedKey

PIMETextService/PIMEClient.cpp:455–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455bool Client::onPreservedKey(const GUID& guid) {
456 auto guidStr = uuidToString(guid);
457 if (!guidStr.empty()) {
458 Json::Value req = createRpcRequest("onPreservedKey");
459 req["guid"] = std::move(guidStr);
460
461 Json::Value ret;
462 callRpcMethod(req, ret);
463 if (handleRpcResponse(ret)) {
464 return ret["return"].asBool();
465 }
466 }
467 return false;
468}
469
470bool Client::onCommand(UINT id, Ime::TextService::CommandType type) {
471 Json::Value req = createRpcRequest("onCommand");

Callers

nothing calls this directly

Calls 2

uuidToStringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected