Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Using split screen keyboard in Symbian Anna and beyond
This article explains how to use split screen keyboard in Symbian Anna.
Starting from Anna, symbian supports split screen virtual keyboard. Lets see how to use it.
For the CEikEdwin based controls on which you want to enable the split screen keyboard, you need to set this flag: EAknEditorFlagEnablePartialScreen. Either through the resource files, or SetAknEditorFlags function.
SetAknEditorFlags( AknEditorFlags() | EAknEditorFlagEnablePartialScreen );
It is defined like so in eikon.hrh file:
#define EAknEditorFlagEnablePartialScreen 0x200000
#define EAknEditorFlagLaunchPenInputAutomatic 0x400000
EAknEditorFlagLaunchPenInputAutomatic makes the control open the keyboard automatically without user tapping on it. Handy.
Now how do you detect the keyboard is opened or closed ?
In your AppUi or in your CCoeControl based class implement HandleResourceChange function.
void MyContainer::HandleResourceChange(TInt aType)
// handle there events:
const TInt KAknSplitInputUiOpen = 0x2001E2C2; // split screen vkb opened, layout controls
const TInt KAknSplitInputUiClose = 0x2001E2C3; // split screen vkb closed, layout controls
14:33, 1 September 2011 (EEST)