Jim Hunter schrieb:
> After upgrading from .6.x to .7.x I am getting a warning in the 
> following line of code that used to work. The code no longer works and 
> generates a warning (the message follows the code sample). Here is the 
> code:
>
> this.From.addEventListener ('keyup', 
> function(){this.setValue(this.getComputedValue().toUpperCase()); });
>
> and when you type in the edit box it generates:
>
> 045504 WARN:  qx.event.type.KeyEvent[3575]: Deprecated: please use 
> getKeyIdentifier() instead.
>
>
> Doing a grep shows that qx.event.type.KeyEvent is only used inside the 
> qooxdoo source, not in my code. So the qooxdoo source is warning 
> itself of bad behavior and is no longer working.
>
> What this does is simply force the user to type in upper case, is 
> there another way that will not generate the error and that will work?
>
getKeyCode is used by the framework only in qx.client.Command to keep 
backwards compatibility. But command generates a different warning if 
used with a keyCode parameter. The warning does print a stack trace. 
Could you post the stack trace please. I have currently no idea where 
the problem comes from.

Event though getKeyCode is deprecated it should still work as expectd.

Best Fabian


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, 
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to