On Wed, Feb 10, 2010 at 19:34, Simon Bull <[email protected]>wrote:

> Hello All,
>
> In my legacy app I used to be able to do key event comparisons like this:
>
>      if (e.getKeyIdentifier() === qx.legacy.event.type.KeyEvent.keys.enter)
>
> I can do the equivalent in 0.8 like this:
>
>      if (e.getKeyIdentifier() === "Enter")
>
>
> I have seen the stuff in qx.event.handler, but can't seem to find a
> way of achieving the same comparison without hard coding the String
> "Enter".  Does anyone know how to do this properly?
>

I believe you're doing it the 0.8/1.0 way. See the documentation for
getKeyIdentifier() here:

http://demo.qooxdoo.org/1.0.x/apiviewer/#qx.event.type.KeySequence~getKeyIdentifier
and expand the getKeyIdentifier documentation. It shows that the
non-printables are represented by a string, one of which is "Enter".

Derrell
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to