diff --git a/zh-cn/application-dev/application-models/inputmethodextentionability.md b/zh-cn/application-dev/application-models/inputmethodextentionability.md index 3f743ee683b40977c7b7dd7b517b1911d6323dd5..c34b69aea52b0ddba13313b5cfe0488d5f4a27c4 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 // 初始化窗口