HarmonyOS 键盘如何不收起来?

TextArea点击弹起键盘,点击发送按钮后,键盘有办法不收起来吗,这样用户可以继续发送

TextArea({
  text: '',
  placeholder: '请输入您要咨询的问题',
})
  .width('100%')
  .backgroundColor(Color.Green)
  .maxLines(5)
  .height(100)
  .enterKeyType(EnterKeyType.Send)
  .onSubmit(() => {
  })
阅读 479
1 个回答

输入框组件失去焦点过程中一定会收起键盘,若想要保留键盘,只能让输入框组件不失去焦点。输入框组件想要保留焦点,就不能有其他组件抢焦点。