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.

Revision as of 11:51, 20 March 2009 by Forum Nokia KB (Talk | contribs)

Numeric input from a QWERTY keypad on Symbian

From Wiki
Jump to: navigation, search


Article Metadata
Tested with
Devices(s): All (S60), tested on Nokia E71, Nokia N97
Keywords: TCoeInputCapabilities
Created: (20 Mar 2009)
Last edited: Forum Nokia KB (20 Mar 2009)


On S60 devices with a QWERTY keypad, user-selectable numeric input mode is not available. Instead, numbers typically share physical keys with other characters and are accessed with the modifier (Fn) key.

If an application does not use AVKON UI controls but handles individual key events, receiving numeric input can be a problem on QWERTY devices.


If a CCoeControl-derived class that handles key events needs numeric input, its input capabilities can be defined as follows:

  TCoeInputCapabilities CMyAppView::InputCapabilities() const
TCoeInputCapabilities inputCaps(TCoeInputCapabilities::EWesternNumericIntegerPositive);
return inputCaps;

After this, pressing number keys produces correct results on all S60 devices. On QWERTY devices, there's no need to use the modifier key for numeric input.

See also

KIS001180 - Setting numeric input mode as the default for Text Editors not possible in QWERTY keypad devices

82 page views in the last 30 days.