Hi,

you can add an event handler on "keypress". Something like the following:

         yourTable.addListener("keypress",
                     function(e) {
                         var key = e.getKeyIdentifier();
                        var row= propertyEditor.getFocusedRow();
                        var col= propertyEditor.getFocusedColumn();
                        this.debug('key='+key+', row='+row+', col='+col);
                    },
                    this);

and check for key and do whatever you want to do ... you might need the two
methods cancelEditing(), stopEditing() as well.

Cheers,
Fritz

On Thu, 12 Aug 2010, nexar wrote:

>
> Hi
>
> I'm a complete newbie to qooxdoo (qx) and got interested because I needed a
> half decent table widget for my app.  What I've seen at qx exceeds my
> expectations and thanks in advance for that.
>
> However I've been trying out your various table demos and the thing that is
> worrying me is that once I enter edit mode on a cell in the table I can't
> move to the next cell in the row using tab.  If I use 'Enter' I move to the
> same cell in the next row, which is not how you would intuitively move
> within a table.  i.e. traverse a row and then move to the next row at the
> end of the row.  Also 'Shift Tab' doesn't take me back.  Given that the
> table looks very much like a FAT Client table my users are going to
> intuitively want to use the above key strokes.
>
> Please can anyone tell me whether the behaviour in the demos can be
> overridden to allow the behaviour outlined above?  I would be happy to write
> extra code to get the behaviour I want.  However looking through the various
> example 'js' or the API docs does not show if I can do that.  Any guidance
> would be greatly appreciated.
>
> I need to make a decision on whether to use qx for my app or not and this is
> currently a stumbling block.
>
> Thanks in advance.
>
> Purvez
>

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to