When editing a Data Grid Table Column, one has to put in a CloseFieldEditor handler to capture the modified text.
Now how do you keep the default behavior and either advance to the next column or go back the previous column, or just stop?
ie, tab key, shift tab key, return or enter.
These actions do NOT occur anymore once you have a CloseFieldEditor handler in your column behavior.
I tried "pass CloseFieldEditor" to supposedly go to the default handler - does NOT work.
Eventually I did find the code posted that told me to:
Code: Select all
put the dgColumnNumber of me into theNumber
put line theNumber of the dgProp["columns"] of group "myDataGrid" into theName
send "EditCellOfIndex " & theName & ", " & theIndex to the group "fSpaceList" in 2
BUT, that is NOT what should be happening if anything other than the tab key pressed.
tabkey, return and enter handlers in the column behavior never get called - probably because the FieldEditor has control.
I have no interest in interfering with the FieldEditor itself - that is a whole crazy level of trouble to get into.
So how to find what the "next focus" would be?