zao / pixeltoaster

Automatically exported from code.google.com/p/pixeltoaster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

default listener behavior is annoying for on key down

GoogleCodeExporter opened this issue · comments

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

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

  • Changed state: Fixed