Handling Send key events in Phonebook Extension Plug-in
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