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.

How to know the present input mode

From Wiki
Jump to: navigation, search
Article Metadata
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();
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorUpperCase)))
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorTextCase)))
else if(ic->IndicatorState(S_uid(EAknNaviPaneEditorIndicatorNumberCase)))
This page was last modified on 8 May 2013, at 00:01.
22 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.