Hi 

When setting focus by TAB  to DateField, we can't
input data directly. We have to select it by mouse.

Here is solution   

 construct : function()
 {
    this.base(arguments);

    // set the layout
    var layout = new qx.ui.layout.HBox();
    this._setLayout(layout);
    layout.setAlignY("middle");

    // text field
    var textField = this._createChildControl("textfield");
    this._createChildControl("button");

    // register listeners
    this.addListener("click", this._onClick, this);
    this.addListener("blur", this._onBlur, this);

    // forward the focusin and focusout events to the textfield. The
textfield
    // is not focusable so the events need to be forwarded manually.
     this.addListener("focusin", function(e) {
     textField.fireNonBubblingEvent("focusin", qx.event.type.Focus);
     textField.setTextSelection(0,0);            //  <<**********  added 
    }, this);

.......


BRGDS
FranĨek


--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/DateField-Focus-tp7256352p7256352.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to