How to disable Center Key (CK) and let only Left Soft Key (LSK) be used in j2me

Posted by awaghad-ashish on Stack Overflow See other posts from Stack Overflow or by awaghad-ashish
Published on 2010-05-24T10:04:27Z Indexed on 2010/05/24 10:11 UTC
Read the original article Hit count: 467

Filed under:
|
|
|

Hello everyone,

I created a custom item in which I need to use the Center Key for the purpose of selecting and I am successfully able to use it with the keyPressed event using the keyCode as -5. The problem is, as soon as I press the CK, it also clicks on the command above the LSK and that causes the menu to pop up. Is there any way that I can disable the CK for a particular command or something like that (because I dont need CK, since I can click on the command through LSK as well, I want to use the CK specifically for the custom item)?

Any kind of help will be appreciated,

Thanks and regards, Ashish.

© Stack Overflow or respective owner

Related posts about gui

Related posts about command