GeeCON Prague 2014*
The moose likes Product and Other Certifications and the fly likes Command vs Key Code Event in Canvas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Command vs Key Code Event in Canvas" Watch "Command vs Key Code Event in Canvas" New topic
Author

Command vs Key Code Event in Canvas

Alibabra Sanjie
Ranch Hand

Joined: Feb 09, 2004
Posts: 147
The spec said:"...Canvas can use both key code event and commands for the event handling... if keys used for commands may overlap with the keys that will deliver key code events to the canvas, 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 app..."

I believe that it not always true. It is really the implementation and device DEPENDENT!. The device will or will not 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 app. I can't see how it work. I believe that the commands will take precedent in normal case. Any comments for that


Alibabra
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Alibabra Sanjie:

I believe that it not always true. It is really the implementation and device DEPENDENT!. The device will or will not 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 app. I can't see how it work. I believe that the commands will take precedent in normal case. Any comments for that


you are true that it's device implementation dependent... but it means that the deveices that implement MIDP 2.0 must implement those things adn let the users select the mode.... Yes, the high-level commands will have more precedence over the low-level commands...

Just my 2 cents...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
 
GeeCON Prague 2014
 
subject: Command vs Key Code Event in Canvas