A mapView Keyboard Event stops Keyboard Navigation

298
1
01-18-2024 05:56 PM
RodneyBowden
New Contributor II

I assuming I am doing something silly, however, whenever I enable a keyboard event on mapView as per the below, the keyboard navigation stops. The keyboard events are working alongside with all other application functions appear to work. Any feedback welcome.

mapView.setOnKeyPressed(keyevent -> {

    if (keyevent.getCode().equals(KeyCode.DELETE)) {
        selectDelete();
    }
    keyevent.consume();
});

0 Kudos
1 Reply
ViktorSafar
Occasional Contributor II

Which SDK? Might be worth moving this into the relevant sub-community

ViktorSafar_0-1705921034230.png

 

0 Kudos