Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 06:23, 5 March 2008.

KIJ000844 - Softkey codes are not reported on a normal Canvas

From Forum Nokia Wiki


ID KIJ000844 Creation date March 5, 2008 
Platform S40 5th Edition (and FP1)
S60 3rd Edition (and FP1 and FP2)  
Devices Tested with Nokia 6301, Nokia 6555, Nokia N95, Nokia E61i 
Category Java ME  Subcategory MIDP 2.0  
APIs   Classes  
Methods      

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 Image: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.

Related Discussions
Thread Thread Starter Forum Replies Last Post
What's the keycode for multimedia and N81 A,B keys? ioat Python 4 2008-09-15 08:57
Removing default exit button jmdeveloper Mobile Java General 9 2006-11-07 16:30
How to display two canvas at time using Sony Ericsson P910 device Ravikumar Mobile Java General 4 2006-11-10 10:47
Threading and FlushGraphics() dzei01 Mobile Java General 4 2003-10-26 22:46
How to do exit from application? Yavorsky_Yury General Symbian C++ 10 2008-06-04 16:20
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX