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.

--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

Reply via email to