mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-07-20 23:45:31 -04:00
@@ -71,6 +71,7 @@ namespace MiscServices {
|
||||
int32_t GetEnterKeyType();
|
||||
int32_t GetInputPattern();
|
||||
void HideCurrentInput();
|
||||
void SetCallingWindow(uint32_t windowId);
|
||||
|
||||
private:
|
||||
InputMethodController();
|
||||
|
||||
@@ -420,5 +420,17 @@ using namespace MessageID;
|
||||
IMSA_HILOGI("InputMethodController::GetInputPattern");
|
||||
return inputPattern_;
|
||||
}
|
||||
|
||||
void InputMethodController::SetCallingWindow(uint32_t windowId)
|
||||
{
|
||||
IMSA_HILOGI("InputMethodController::SetCallingWindow windowId = %{public}d", windowId);
|
||||
if (!mAgent) {
|
||||
IMSA_HILOGI("InputMethodController::SetCallingWindow mAgent is nullptr");
|
||||
return;
|
||||
}
|
||||
mAgent->SetCallingWindow(windowId);
|
||||
return;
|
||||
}
|
||||
|
||||
} // namespace MiscServices
|
||||
} // namespace OHOS
|
||||
|
||||
Reference in New Issue
Block a user