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. Thanks for all your past and future contributions.

Archived:Setting numeric input mode as the default for Text Editors not possible in QWERTY keypad devices (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Setting the numeric input mode as the default input mode for Text Editors is not possible in S60 3rd Edition, S60 3rd Edition Feature Pack 1 devices that have a QWERTY keypad.

Article Metadata
Tested with
Devices(s): Nokia E61, Nokia E61i, Nokia E71
Platform(s): S60 3rd Edition, S60 3rd Edition, Feature Pack 1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Keywords: RESOURCE DIALOG EDWIN control EAknEditorNumericInputMode
Created: User:Technical writer 1 (26 Nov 2008)
Last edited: hamishwillee (21 Jun 2012)


On QWERTY keypad devices, there is no user-selectable numeric input mode available. The numeric input mode input is used only in the numeric editors in these devices and it is not possible to set the default mode to numeric if the editor also allows text input.

How to reproduce

Resource for EDWIN control:

 RESOURCE DIALOG r_text_number_query
flags = EGeneralQueryFlags;
items =
type = EAknCtQuery;
id = EGeneralQuery;
layout = EDataLayout;
control = EDWIN
width = 128;
lines = 1;
flags = EEikEdwinOnlyASCIIChars ;
default_input_mode = EAknEditorNumericInputMode;
default_case = EAknEditorTextCase;
allowed_case_modes = EAknEditorAllCaseModes;
numeric_keymap = EAknEditorStandardNumberModeKeymap;
allowed_input_modes = EAknEditorAllInputModes;

The code snippet to display the query dialog using the above resource:

 void ShowQueryDialogL()
TBuf<128> buffer;
CAknTextQueryDialog* Dialog =
Dialog->SetPromptL(_L("Enter Text"));
TInt ret = Dialog->RunLD();
if(ret !=KErrNone)
CEikonEnv::Static()->InfoWinL(_L("Entered Text: "),buffer);

The above code snippet displays a query dialog with numeric input mode in all S60 3rd Edition devices except for QWERTY keypad devices, such as the Nokia E61 and Nokia E71.


No solution available.

This page was last modified on 21 June 2012, at 06:26.
40 page views in the last 30 days.