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.

Filtering standard Symbian shortcut key behavior

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
Created: User:Technical writer 2 (21 Sep 2006)
Last edited: lpvalente (27 Jun 2014)


Filtering standard S60 shortcut key behavior


Some key combinations in S60 have a standard predefined behavior. For example, in QWERTY-keyboard devices, CTRL+C /CTRL+V perform the function of copy/paste. Some applications may want to override this. The following solution demonstrates how an application can override the behavior of any shortcut key.


To override this functionality, you have to override the HandleWsEventL() function in the AppUi class (CEikAppUi). The overridden function should handle the required combinations, and pass all other key combinations to the framework by calling base class implementation of HandleWsEventL().
For example, filtering out all shortcuts using the Ctrl key could be done as follows:
void CMyAppUi::HandleWsEventL(
    const TWsEvent& aEvent,
    CCoeControl* aDestination)
    if ((aEvent.Key()->iModifiers &
        (EModifierCtrl |
         EModifierLeftCtrl |
         EModifierRightCtrl)) != 0)
        // Do nothing

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