VKB表格始终打开 [英] Form with the VKB always open

查看:68
本文介绍了VKB表格始终打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于用于聊天的表格,始终打开VKB(像在其他聊天应用程序中一样)可能会更好,因为在每条消息后都打开和关闭VKB令人讨厌。

For a Form used for chatting, it could be nicer to have the VKB always opened (like in other chatting apps), because opening and closing the VKB after every message is annoying.

如何使用Codename One做到这一点?我只对单个 Form 感兴趣,而在其他表单中,VKB应该可以正常运行。谢谢

How can I achieve that with Codename One? I'm interest for that in a single Form only, in the other Forms the VKB should act normally. Thank you

推荐答案

当您单击完成,返回(在Android上)或单击其他按钮时,我们最小化键盘组件将焦点移开。这与whatsapp在键盘行为方面的工作方式非常一致。您可以检测到最后一个并显式调用 textField.startEditingAsync()重新打开键盘。

We minimize the keyboard when you click "done", back (on Android) or when you click on a different component to move focus away. This is pretty consistent with the way whatsapp works in terms of keyboard behavior. You can detect the last one and explicitly invoke textField.startEditingAsync() to reopen the keyboard.

注意虚拟键盘始终与文本字段绑定。

Notice that a virtual keyboard is always tied to a text field.

这篇关于VKB表格始终打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆