DataGrid disables focusmanager when passing tab through the cells. You could override DG, trap the keyDown for ENTER, call stopImmediatePropagation so the DG doesn't see it, and dispatch a fake keyFocusChange event instead
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sergey Snovsky Sent: Saturday, January 10, 2009 7:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make Enter work as Tab in Flex DataGrid Any ideas, please? --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, "Sergey Snovsky" <serge012...@...> wrote: > > Hello! > > I'm trying to make Enter work the same as Tab in a DataGrid - commit > changes to the edited cell and move focus to the next one to the > right, then next row, etc. > > I've tried to use something like: > > focusManager.getNextFocusManagerComponent(true).setFocus(); > > or > > focusManager.moveFocus(FocusRequestDirection.FORWARD); > > but I cannot seem to make it work in a DataGrid... > > Any help would be much appreciated! > > Thank you! > > Sergey >