停用 ime 模式 onBlur
我有一个输入字段,其 imeMode 设置为活动状态。因此,当我输入此字段时,它会激活我的 imeMode,以便我可以输入日语。但是当我离开这个文本字段时,我的时间仍然处于活动状态。离开场地后如何停用 ime。我也许可以在 onblur 上放一些东西,但不知道在那里做什么。我愚蠢地尝试将此文本字段的 ime 模式设置为非活动 onblur,但当然只有当我再次输入此文本字段时它才会生效。我希望在不聚焦时我可以停用 ime,允许在其他字段上输入罗马字,而无需将 ime 模式一一设置为非活动状态。
I have an input field whose imeMode is set active. So when I enter this field it activates my imeMode so I can type japanese. But when I leave this textfield my ime is still active. How do i deactivate ime upon leaving the field. I can maybe put something on onblur but Don't know what to do there. I foolishly tried setting this textfield's ime mode to inactive onblur but ofcourse it will take effect only when I enter this textfield again. I was hoping that on unfocus i can deactivate the ime allowing to input romaji on other fields without setting there ime-mode to inactive one by one.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
Try