语言

Menu
Sites
Language
Handling Device Back Button

Is there any way to handle Device Back Button click while Virtual Key Pad is opened?
Because Tizen is not catching such callback (eext_object_event_callback_add(mWin, EEXT_CALLBACK_BACK, win_back_cb, this);) while keypad is opened.

For ex,
1)Virtual Keypad is opened;
2)Pressing Device Back Button; EEXT_CALLBACK_BACK - was NOT handled
3)Virtual Keypad is closed;
4)Pressing Device Back Button; EEXT_CALLBACK_BACK - was handled

How can I catch 'press' event on the second step?

响应

3 回复
Alex Dem

Hi,
I know this tutorial also:
https://developer.tizen.org/development/ui-practices/native-application/efl/hardware-input-handling/grabbing-hardware-key-events
but did not check during virtual keyboard is shown.
Alexey.

Alex Dem

Hi, 
But looks like "XF86RCMode" and "XF86Back" hardware keys inapplicable for this case (if H/W Back Key was pressed during virtual keyboard is on screen).
Alexey.

Alex Dem

Hi,
Try to use this api to detect virtal keypad state:

       evas_object_smart_callback_add(ad->conform, "virtualkeypad,state,off", v_keypad_is_off, NULL);

Alexey.