Component On Click Event ieTextField

Is there a On Click Event on a Text Field widget?
I see theres a few handlers where data is changed
image

I have textarea, datepicker, lookup, upload components that id like to popup a context menu option just when I click on the component.
Basically need it for all components. Is this possible?
Thank you for the continued support !!!

May be this post will help https://www.cuba-platform.com/discuss/t/how-to-use-com-vaadin-ui-textfield-on-cuba-platform/1881 ?
Or may be this one: https://www.cuba-platform.com/discuss/t/know-if-a-component-has-focus-active/10765

2 Likes

This did the trick !!!

textField.unwrap(com.vaadin.ui.TextField.class).addFocusListener(event -> {
// custom code
});

Thank you very much !!!