Alexander Back wrote:
> Hi Kenny,
>
> On Friday 06 March 2009 Kenneth Tilton wrote:
>> Create a textfield and a listbox.
>>
>> Put a keypress listener on the textfield.
>>
>> Type in the textfield and see listener console writes OK.
>>
>> Click on an item in the listbox.
>>
>> Click-drag (one action) to select the full contents of the textfield.
>>
>> Start typing: the typing works in that the textfield clears the prior
>> value and echos the value being typed, but the keypress listener does
>> not fire.
>>
>> Now just plain click in the text field. Listener starts firing.
>>
>> Note that the textfield does change its highlighting to indicate it has
>> focus and typing does work, and the listeners are still there but
>> (apparently) not swapped into some necessary state if a click on a field
>> is a click-drag.
> I've just tried to reproduce your issue, but in my little demo it worked.
Oh, good, that /does/ manifest the bug, at least for me just now. I
failed to super-emphasize the key triggering behavior, and I should have
because it is both necessary and quite narrow. I will give the full
sequence again (and you can do this repeatedly getting listeners to fire
then not then fire then not):
1. type anything in the text field. with the js console open see the
listener firing
2. click in the list box to select an item
3. mousedown in the text field to the right of what you typed and
without releasing the mouse drag-select the whole string. Now mouseup
and start typing new text and the Listener does not fire.
4. plain click (mouse down and up) in the textfield and the listener
starts firing again as we type
This is fun because you can right-to-left drag /part/ of the string and
it works and you can /left-right/ drag-select the whole string and it
works, only right-left complete drag-select is breaking the listeners.
hth, kt
ps. thx for setting up the reproducible--I will tend to that in the future.
>
> --snip--
> var textfield = new qx.ui.form.TextField;
> textfield.addListener("keypress", function(e){
> console.debug(e.getKeyIdentifier());
> });
>
> this.getRoot().add(textfield, { left: 50, top: 50 });
>
> var list = new qx.ui.form.List;
>
> var listitem;
> for (var i=0; i<10; i++)
> {
> listitem = new qx.ui.form.ListItem("Item " + i);
> list.add(listitem);
> }
> this.getRoot().add(list, { left: 50, top: 200 });
> --snip--
>
> You can copy&paste this little demo to the playground application and try to
> reproduce the issue for yourself.
>
> Is my little demo code comparable to your code or did I miss something
> important?
>
> I've tested this code with the current 0.8.2 release.
>
> cheers,
> Alex
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.237 / Virus Database: 270.11.8/1985 - Release Date: 03/05/09
> 07:54:00
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel