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.
Handling Send key events in Phonebook Extension Plug-in
S60 5th Edition
In S60 5th Edition applications, by default the dial pad can be launched by pressing the green key (also called the Yes key), and voice command can be started by long pressing the green key. These functionalities can be disabled as described in How to prevent dial pad and voice command from being started by green key.
However, the above method cannot be used with the Phonebook Extension Plug-in. An alternate way to achieve this result is described here.
In the extension plug-in control's OfferKeyEventL method,add the following lines of code:
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
TKeyResponse ret = EKeyWasNotConsumed;
// Check if this is a Send Key press both short & long
if (aKeyEvent.iScanCode == EStdKeyYes)
ret = EKeyWasConsumed;
// rest of the code