Search code examples
event-handlingtizentizen-native-appefl

How to handle hardware button "Back" on Tizen platform using EFL library


I use EFL library to develop applications for Tizen platform. I need to implement event handler for hardware button "Back".

In native Tizen API it is done pretty simple. But I have no idea how can I do this in EFL library.

I tried to do it using the following way:

evas_object_event_callback_add( obj, EVAS_CALLBACK_KEY_DOWN, on_key_down, NULL );

But it doesn't work.

Could anyone help me?


Solution

  • Instead of EVAS_CALLBACK_KEY_DOWNandevas_object_event_callback_add()`,

    • use ea_object_event_callback_add
    • use EA_CALLBACK_BACK for back button
    • and EA_CALLBACK_MORE for menu button but you need to include one header file, unfortunately I forgot the header file name some thing efl-util.h or something, you can make a search in header files