语言

Menu
Sites
Language
elm_entry_input_panel_show issue

Hi,
The elm_entry_input_panel_show doesn't appear to work correctly.
When I call it the input panel does appear but the edit field is not updated with the virtual keyboard input.
I basically want to display the input panel with the user having to click on the edit field.

I have used the 
Native Sample Application Source Code example from https://developer.tizen.org/downloads/add-on-sdks
and modified the original code in void popup.c  iap_input_popup(Evas_Object *parent, const char *data)

with
elm_entry_input_panel_show(editfield);

Do you have any similar exprerience ?

Thanks
Manos


 


 

响应

4 回复
pius lee

Input Panel need focus on the Entry for writing, refer following code.

elm_object_focus_set(editfield, EINA_TRUE);
elm_entry_input_panel_show(editfield);

 

Manos Theocharopoulos

Thank you Pius,
Indeed setting the focus works.
However if the show the input panel automatically is set to true:
elm_entry_input_panel_enabled_set(editfield, EINA_TRUE);

the elm_object_focus_set(editfield, EINA_TRUE); will display the input panel anyway without using elm_entry_input_panel_show.

Without setting the focus first elm_entry_input_panel_show doesn't update the editfield, so I think there must be a problem with the implementation.

Thanks
Manos
 

Palitsyna

Hello,

just fyi, you can read more information about elm_object_focus_set() in documentation:
https://developer.tizen.org/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__Focus.html#ga05e39b5e60ad861c63100c811855ef55

 

Regards,

Svetlana Palitsyna

Carsten Haitzler

no - the code is correct. when you type, your input is going to the focused windows. showing the input panel isn't focusing the widget. just focus the widget. there is no need to go manually showing the vkbd panel. focus if you want it focused. the SYSTEM will decide what to do. eg if bt kbd attached, no inptu panel has to show as a real kbd is plugged in, for example. you are trying to do too much work on your own - keep it simple. :)