Shortcuts not working if DIalog is opened

UI.getCurrent().addShortcutListener(() → {
}, Key.F12);

If this is executed within a Dialog, the listener is not executed (Vaadin 23). Seems like a bug, because it is working without DIalogs.

That’s intended because the dialog is modal by default. If you wanna interact with code behind the dialog’s modal curtain you have to remove the modality

Thanks for the answer. Is this new? Because I thpught this was working already…

The modality has changed in Vaadin 23. So I think this code is working in Vaadin 14 for example

Okay, thanks for the info. :slightly_smiling_face: