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.

Revision as of 04:50, 9 August 2013 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Softkey codes are not reported on a normal Canvas (Known Issue)

From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleTested with
Devices(s): Tested with Nokia 6301, Nokia 6555, Nokia N95, Nokia E61i
Created: User:Technical writer 1 (05 Mar 2008)
Last edited: hamishwillee (09 Aug 2013)



Some key codes are not reported to the key-capturing methods of the Canvas class.


Some key codes are not reported through the keyPressed(), keyRepeated(), and keyReleased() methods of the Canvas class on a normal, non-full screen Canvas. This applies especially to the left, middle (when present), and right softkeys. Those are only reported back to the above key-capturing methods on full-screen Canvas instances.

The MIDP 2.0 specification says:

For some devices the keys used for commands may overlap with the keys that will deliver key code events to the canvas. If this is the case, the device will provide a means transparent to the application that enables the user to select a mode that determines whether these keys will deliver commands or key code events to the application.

This does not happen on all tested devices.

How to reproduce

  • Download the attached file, which contains a test application (CanvasKeyTest.jad and CanvasKeyTest.jar).
  • Install it using PC Suite or via Bluetooth.
  • Start the application and go to "Normal Canvas". Press some keys, especially the left, middle (if existing), and right softkey, and you will notice that the key presses will not be reported to the key-capturing methods.
  • Press '0' to go back to the main menu and select "Full Canvas". Press some keys, especially the left, middle (if existing), and right softkey, and you will notice that the key presses are reported correctly to the key-capturing methods.


Currently there is no solution. This is expected to be fixed in S60 3rd Edition Feature Pack 2.

This page was last modified on 9 August 2013, at 04:50.
96 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.