非输入框区域收起键盘使用stopInputSession结束输入会话.onTouch(() => { // 收起键盘 let inputMethodController = inputMethod.getController(); inputMethodController.stopInputSession() })参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-inputmethod-V5\#stopinputsession9
非输入框区域收起键盘使用stopInputSession结束输入会话
参考文档:
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-inputmethod-V5\#stopinputsession9