Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我似乎在网上找不到任何关于此的内容,但取决于用户点击输入框时显示我的应用程序的哪个屏幕,有时键盘会显示 GO 键,有时会显示 RETURN 键;即显示在键盘的右下角。
我正在为 iOS 和 Android 构建,理想情况下我希望它始终显示返回键。
如何确保键盘始终显示 RETURN 键?
如果您从 更改为<input>,<textarea>您将在 iOS 上获得返回键(在文本区域中添加换行符)。我没有测试过安卓。
<input>
<textarea>