Namespaces
Variants
Actions

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

Jump to: navigation, search
Article Metadata

Code Example
Tested with
Devices(s): Tested with Nokia 6301, Nokia 6555, Nokia N95, Nokia E61i

Compatibility
Platform(s): Series 40 5th Edition (and FP1), S60 3rd Edition (and FP1 and FP2)

Article
Created: User:Technical writer 1 (05 Mar 2008)
Last edited: hamishwillee (10 May 2013)

Contents

Overview

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

Description

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:NormalCanvasTest.zip 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.


Solution

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

This page was last modified on 10 May 2013, at 08:53.
111 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved