mebbage / j4me

Automatically exported from code.google.com/p/j4me
2 stars 0 forks source link

Key and Pointer event consumption #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello all,

It appears, that some key event could be processed twice.

I create a special container component that handle Up/Down key.

Unfortunately, the dialog component also process Up/Down key whatever 
could be done by its children components. 

So, I propose to add a boolean return value to the keyPressed, 
keyReleased, KeyRepeated method, that will indicate if the component 
consumed (use) or not the event. If it was, then the caller (parent) 
should not processed the event any more.

I propose also to introduce the same behaviour for the pointers event. 

See the attachment (SVN diff)

Original issue reported on code.google.com by jmherme...@gmail.com on 11 Feb 2008 at 5:38

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by deanbro...@gmail.com on 12 Feb 2008 at 12:21

GoogleCodeExporter commented 9 years ago
Components contained within each other are a J4ME 1.1 feature.

Original comment by deanbro...@gmail.com on 8 Mar 2008 at 1:29