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.
Numeric input from a QWERTY keypad on Symbian
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
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.