My question is simple, how to callback a function when I press enter to finish my input in a pgEntry.
I refer to the manual and C++ reference for hours, I think the get_accept_event may work, however, I don’t know the exact way to use it and didn’t find related examples in the forums.
framework.get_event_handler().add_hook(ip_address->get_focus_in_event(), event_test, ip_address);
this code help me to callback a function when I focus in the pgEntry,
but I need to callback a function when I press the enter.
Thanks in advance