In JxBrowser 6.3 several changes to public API have been introduced. These changes may require that you apply changes to your application's source code. This short guide shows how to change your application's source code written with JxBrowser 6.2 to JxBrowser 6.3 API.(在JxBrowser 6.3中,对公共API进行了一些更改。这些更改可能需要您将更改应用于应用程序的源代码。本简短指南介绍了如何将用JxBrowser 6.2编写的应用程序源代码更改为JxBrowser 6.3 API。)
KeyEventsHandler in BrowserView (Swing and JavaFX)(BrowserView中的KeyEventsHandler(Swing和JavaFX))
6.2(6.2)
view.setKeyEventsHandler(KeyEventsHandler.KeyEventType.ANY, new KeyEventsHandler<KeyEvent>() { public boolean handle(KeyEvent event) { // Suppress Ctrl+A return event.isControlDown() && event.getKeyCode() == KeyEvent.VK_A; } });
6.3(6.3)
view.setKeyEventsHandler(new InputEventsHandler<KeyEvent>() { public boolean handle(KeyEvent event) { return event.isControlDown() && event.getKeyCode() == KeyEvent.VK_A; } });