selectOnEnter in table forms

Hi,

I was playing with the selectOnEnter property for fields on a table view and found that if you click inside the field, it works perfectly, but if you tab into a field with this property set it does not select field contents until you hit enter.

The main goal was to get the cursor to the end of the line in the field as quickly as possible, I don’t think there’s any way to do this in an onFocusGained method. Using selectOnEnter and the right arrow seemed to be the easiest method, except when users tab. I believe the servoy documentation says that this property should select the contents of a field when clicking or tabbing to a field. Is this a bug, or is there some work around. It behaves like this in 3.5.9 and 4.1.1.

Thanks,
-Jeremy

When you tab in a smart client table, you don’t really give focus to the next field, you really give focus to it’s cell. And until you type something or press enter to start editing that cell you will be in a table “cell navigation” mode (this is a name I just made up :)). You will notice that after you tab you can use the arrow keys to go to other cells, and this would not be possible if the next field was really focused already.

Thanks, that makes sense.

I did notice the right arrow will navigate through the cells, after a tab staying in cell navigation mode which makes the table form like a spreadsheet. But in this case we want to turn off that ability. We want the right arrow to navigate within the cell, by selecting all contents of field on entry, including tabbed entry. I guess using a table form, there is no combination of property settings that would make this possible.