Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
viritin ConfirmDialog of AbstractForm not working when using ShortCutListen
Hi.
I'm evaluating the viritin addon. Per default after clicking the delete button of the AbstractForm a confirmation dialog opens. That's fine.
Now I would like to add a keyboard shortcut to the delete button:
getDeleteButton().addShortcutListener(new ClickShortcut(getDeleteButton(), KeyCode.D, ModifierKey.ALT));
But now when the user presses ALT-D on the AbstractForm the entity is deleted without showing the confirmation dialog.
Any idea why this is happening and how to add a shortcut which also opens the confirmation dialog?
Thanks for help.
Horst
Last updated on
Hi Horst,
Looks like a bug to me. I'll look into it!
cheers,
matti
Last updated on
You cannot reply to this thread.