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.


KeyEventsHandler in BrowserView (Swing and JavaFX)

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

view.setKeyEventsHandler(new InputEventsHandler<KeyEvent>() {
    public boolean handle(KeyEvent event) {
        return event.isControlDown() && event.getKeyCode() == KeyEvent.VK_A;
    }
});