Hi,
okay, I would try to stop the event propagation. Could you please try
something like this:
textField.addListener("keypress", function(e) {
if (e.getKeyIdentifier() === "Space") {
e.stopPropagation();
}
});
Cheers,
Chris
Am 08.03.2010 10:52, schrieb geoffre:
> Christian,
>
> Please find attach below the response of the "keypressed" listener.
>
> On the other hand I noticed, while I do not key the directional arrows
> space key is working properly.
> When I pressed one of the directional arrows space key does not work (in
> addition I see the focused custom widget in my list has changed -
> remember that all my custom widget are placed in a list), but I see my
> "keyPressed" listener function is receiving the events "Left, Up, Down,
> Right, Space" from the corresponding keys (see below).
>
> One thing is for sure is that the "Up", "Down" events are at least
> consumed by the List.
>
> Regards.
>
> --------------------------------------------------------
> 009690 qx.core.Init: Load runtime: 9690ms
> 010079 qx.core.Init: Main runtime: 387ms
> 010080 qx.core.Init: Finalize runtime: 0ms
> 012711 destruct - initialPane
> 019247 qx.ui.container.Composite[uy]: KEY : A
> 019550 qx.ui.container.Composite[uy]: KEY : Z
> 022764 qx.ui.container.Composite[uy]: KEY : Space
> 022778 qx.ui.container.Composite[uy]: KEY : Space
> 023921 qx.ui.container.Composite[uy]: KEY : A
> 024240 qx.ui.container.Composite[uy]: KEY : Z
> 027032 qx.ui.container.Composite[uy]: KEY : Left
> 027456 qx.ui.container.Composite[uy]: KEY : Right
> 027891 qx.ui.container.Composite[uy]: KEY : Down
> 028200 qx.ui.container.Composite[uy]: KEY : Up
> 028726 qx.ui.container.Composite[uy]: KEY : Space
> 029110 qx.ui.container.Composite[uy]: KEY : Space
> 029965 qx.ui.container.Composite[uy]: KEY : Left
> 030269 qx.ui.container.Composite[uy]: KEY : Right
> 030587 qx.ui.container.Composite[uy]: KEY : Down
> 030860 qx.ui.container.Composite[uy]: KEY : Up
>
> Le 08/03/2010 10:04, Christian Schmidt a écrit :
>
>> Hi,
>>
>> the problem is that the List registers a listener for "keypress" event
>> and react on e.q. space.
>>
>> Could you please add a "keypress" listener to your TextField and log all
>> key evens which are dispatched on the TextField. Is the space key
>> dispatched on it?
>>
>> Cheers,
>> Chris
>>
>> Am 05.03.2010 15:26, schrieb geoffre:
>>
>>> Christian,
>>>
>>> I think the problem come from keyboard event that are not correctly
>>> transfer.
>>>
>>> In fact all my custom widget are used inside a List, I noticed that if I
>>> click on a TextField from my custom widget I can keyboard any character
>>> except space and Direction.
>>> But if click on up or down direction arrow, I see that I browse the list
>>> (the custom widget which have the focus change), BUT I can still type
>>> characters into the TextField on which I had previously clicked.
>>>
>>> Regards.
>>>
>>> Le 04/03/2010 14:22, Christian Schmidt a écrit :
>>>
>>>
>>>> Hi,
>>>>
>>>> could you please explain the structure from your custom widget. At the
>>>> moment, I don't know, why the space key doesn't work. As far as I known,
>>>> there is no issue with the TextField.
>>>>
>>>> Or could you provide a short code snippet, which reproduce this issue?
>>>>
>>>> Cheers,
>>>> Chris
>>>>
>>>> Am 03.03.2010 18:01, schrieb geoffre:
>>>>
>>>>
>>>>> Hello,
>>>>>
>>>>> I have a problem with a qx.ui.form.TextField inside a custom widget.
>>>>> In fact the TextField is correctly displayed and I can use it almost
>>>>> normally except for the space bar and the keyboard direction arrow.
>>>>>
>>>>> If I would like to display a space character inside the TextField I need
>>>>> to
>>>>> key "shift + space" instead of "space". And the direction arrow doesn't
>>>>> run
>>>>> anyway.
>>>>>
>>>>> I have always the same problem with IE8, firefox and chrome.
>>>>>
>>>>> Thanks for your help.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>
>>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Christian Schmidt
Software Entwickler
1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel