I am doing a project in S60 5th edition. In my project my requirement is to launch VKB as soon as the symbian native(CEikRichTextEditor) comes into focus not by tapping into the editor. For that i have written following code.
void LaunchVkbL() const
MCoeFepAwareTextEditor* lFepEditor = iEdwin->InputCapabilities().FepAwareTextEditor();
CAknEdwinState* lEdwinState = STATIC_CAST(CAknEdwinState*, lFepEditor->Extension1()->State(KNullUid));
This code works fine if i call it from HandlePointerEventL() function or offerKeyEventL() function but does not seems to work if i call it from any user defined functions. Somehow i managed to call it from Draw() function but from there it works sometimes fine but sometimes panics with WServ 10.
I dont understand whats the problem ...any help would be highly appreciated.