简体   繁体   English

JavaFX WebView的编辑框接受ENTER键事件

[英]JavaFX WebView's edit box accepts ENTER key event

I was wondering, how possible I can make JavaFX WebView to accept ENTER key event? 我想知道,如何使JavaFX WebView接受ENTER键事件?

在此处输入图片说明

Currently, after finishing input username & password, pressing ENTER does nothing. 当前,完成输入用户名和密码后,按ENTER键无任何作用。 I'm not sure whether injecting JavaScript code a good choice, as we have no idea what the HTML content is. 我不确定注入JavaScript代码是否是一个好选择,因为我们不知道HTML内容是什么。 The HTML content is originated from Google. HTML内容源自Google。

Check the documentation here . 此处检查文档。 That should help. 那应该有帮助。 If the documentation doesn't help, see this question for an example. 如果文档没有帮助,请参见此问题的示例。

If you want more specific help, please post some sample code for how you're currently trying to solve the problem. 如果您需要更多具体的帮助,请发布一些示例代码以了解您当前如何解决该问题。

Solution : JavaFX HMTLEditor doesn't react on 'return' key 解决方案: JavaFX HMTLEditor对“返回”键不起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM