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.

Numeric input from a QWERTY keypad on Symbian

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}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): All (S60), tested on Nokia E71, Nokia N97
Keywords: TCoeInputCapabilities
Created: User:Technical writer 1 (20 Mar 2009)
Last edited: lpvalente (27 Jun 2014)


On Symbian 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

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

This page was last modified on 27 June 2014, at 21:31.
82 page views in the last 30 days.