Hi Robert,
I guess this is a bug, since the method „tabFocus“ does implement this feature 
(focusing the textfield child control).
Can you please file a bug report for this issue?
Thanks,
   Alex
Von: Robert Nimax [mailto:[email protected]]
Gesendet: Montag, 27. September 2010 13:00
An: qooxdoo Development
Betreff: [qooxdoo-devel] focus combobox

Hi all,
if you set the focus to a combobox usind the widget´s method focus() and you 
try to make an input using the keyboard, you will notice that the key input 
will not arrive at the textfield until the second character. I don´t know if 
this behaviour is expected.
You can have a look at the following snippet to reproduce this issuse:
------------------------------------------------------
var comboBox = new qx.ui.form.ComboBox();
for (var i=1; i<8; i++) {
  var tempItem = new qx.ui.form.ListItem("2^ " + i + " = " + Math.pow(2, i));
  comboBox.add(tempItem);
}

comboBox.addListener("changeValue", function(e) {
  this.debug("ChangeValue: " + e.getData());
});

this.getRoot().add(comboBox,
{
  left : 20,
  top  : 40
});
comboBox.focus();
------------------------------------------------------
Well...is it a tiny bug ? Shall I open a bug report ?
BTW: You can quickly fix this problem by subclassing qx.ui.form.ComboBox and 
override the focus-Method like this:
focus: function() {
      this.base(arguments);
      var field = this.getChildControl("textfield");
      field.getFocusElement().focus();
}

Maybe it is beacause the child controls of the combobox are overlapping ?

Best regards,
Rob.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to