Hello Jonathan,

thank, I found the following solution 

textWidget.addListener("keydown", 
                        function(e)
                        {
                                if(e.getKeyIdentifier() == "Tab")
                                {
                                        var selstart = 
e._originalTarget.selectionStart;
                                        var selend = 
e._originalTarget.selectionEnd;
                                        var totlen = 
e._originalTarget.textLength;
                                        
                                        textWidget.setSelection(0, selstart);
                                        var sbefore = textWidget.getSelection();
                                        
                                        textWidget.setSelection(selstart, 
selend);
                                        var smiddle = textWidget.getSelection();
                                        
                                        textWidget.setSelection(selend);
                                        var send = textWidget.getSelection();
                                        
                                        var sstring = sbefore + "\t" + send;
                                        
                                        textWidget.setSelection(selstart, 
selend); //ripristino la selezione
                                        textWidget.setValue( sstring );
                                }
                        });



Kind regards,
 Antonino



Jonathan Weiß wrote:
> 
> Hello Antonino,
> 
> 
> sorry, I misread your e-mail. It is not possible to enter tab into a
> TextArea, since we use the tab key to focus widgets. I opened another bug
> report, since the HtmlArea is a special widget and might get this feature
> before the TextArea gets it...
> 
> If you want to be informed when the TextArea gets updated, add yourself as
> CC on http://bugzilla.qooxdoo.org/show_bug.cgi?id=2974
> 
> 
> Kind regards,
> Jonathan
> 

-- 
View this message in context: 
http://n2.nabble.com/Key-Tab-into-qx-ui-form-TextArea-tp3872951p3879001.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to