theonlynexus / pixeltoaster

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

default listener behavior is annoying for on key down #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if you implement a listener to get input, but dont override on key down, --
you expect behavior to not change, but currently this is not the case, as
the quit on escape is ignored.

fix: make the onKeyDown return true/false -- true is default, and indicates
that any "system keys" that are pressed indicating close (eg. ALT-F4 or
escape), should be interpreted as close by default, on top of your existing
keys

Original issue reported on code.google.com by glenn.fi...@gmail.com on 11 Sep 2006 at 4:08

GoogleCodeExporter commented 9 years ago
fixed by adding "listener.defaultKeyHandlers" query -- its true by default, and 
you
have to override it to return false to disable the default quit on escape 
behavior

Original comment by glenn.fi...@gmail.com on 11 Sep 2006 at 4:26