×
Namespaces

Variants
Actions

How to know the present input mode

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Compatibility
Platform(s):
Symbian
Article
Created: huwell (28 Jun 2007)
Last edited: hamishwillee (08 May 2013)
By pressing the hash (#) key event, it is possible to toggle the input mode of the currently focused editor between normal and numeric modes.

The input mode will be hidden when you create a full screen window.

In this case, how to know the present input mode?

void CEditorContainer::GetInputMode() const
{
struct S_uid:
public TUid
{
S_uid(int i) { iUid = i; }
};
 
MAknEditingStateIndicator *ei = CAknEnv::Static()->EditingStateIndicator();
if (ei != NULL)
{
CAknIndicatorContainer *ic = ei->IndicatorContainer();
if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorLowerCase)))
{
//"abc";
}
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorUpperCase)))
{
//"ABC";
}
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorTextCase)))
{
//"Abc";
}
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorNumberCase)))
{
//"123";
}
}
}
This page was last modified on 8 May 2013, at 03:01.
39 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×