From 16691978c7f2d872a1711b8e042e8f1a9e24f288 Mon Sep 17 00:00:00 2001 From: cy7717 Date: Tue, 9 May 2023 14:58:10 +0800 Subject: [PATCH] mod Signed-off-by: cy7717 --- .../application-models/inputmethodextentionability.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/application-models/inputmethodextentionability.md b/zh-cn/application-dev/application-models/inputmethodextentionability.md index 3f743ee683..c34b69aea5 100644 --- a/zh-cn/application-dev/application-models/inputmethodextentionability.md +++ b/zh-cn/application-dev/application-models/inputmethodextentionability.md @@ -67,7 +67,7 @@ onDestroy() { console.log("onDestroy."); - this.context.destroy(); + this.keyboardController.destroy(); } } ``` @@ -106,7 +106,7 @@ this.unRegisterListener(); // 注销事件监听 let win = windowManager.findWindow(this.windowName); win.destroyWindow(); // 销毁窗口 - this.mContext.terminateSelf(); // 销毁InputMethodExtensionAbility服务 + this.mContext.destroy(); // 销毁InputMethodExtensionAbility服务 } private initWindow(): void // 初始化窗口 -- GitLab