Got error
No dispatcher can handle event of type keypress on qx.ui.form.TextField

Thanks Derrell, i know where to go deeper ;)


2013/5/23 Derrell Lipman <[email protected]>

> On Thu, May 23, 2013 at 2:25 PM, franck34 <[email protected]> wrote:
>
>>
>> Hi the list.
>>
>> A day without mail ? not possible :)
>>
>> i've got
>>
>> textField.addListener('keypress',function(ev) {
>>   if (ev.getKeyIdentifier() == 'Enter') {
>>     doSomething();
>> });
>>
>>
>> and i'd like to add something like
>>
>> textField.addListener('blur',function(ev) {
>>     // blur event, let's do the same thing as the user type 'Enter' key
>>     textField.fireEvent('keypress',qx.event.type.KeySequence, args); //
>> HERE IS ARGS
>> });
>>
>
> You can probably do something like this, which I haven't tested and likely
> doesn't work quite correctly, but should at least point you in the right
> direction:
>
> textField.addListener('blur', function(ev) {
>   var Registration = qx.event.Registration;
>   var e = Registration.createEvent('keypress', qx.event.type.KeySequence,
> [ { keyCode : 13 }, textField, 'Enter' ]);
>   Registration.dispatchEvent(textField, e);
> }
>
> Derrell
>
>
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to