Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: enable cell edit mode just after getting focus without pressing F2/Enter #988

Open
AJ1980 opened this issue Apr 15, 2020 · 3 comments

Comments

@AJ1980
Copy link

AJ1980 commented Apr 15, 2020

Now we must press Enter or F2 to begin edit cell in table data grid.
And we must press Enter to end editing cell.

We would like to edit data in table without required pressing Enter/F2, оnly with arrow keys - with the transition to cell editing mode immediately after receiving focus.
And when you click the arrow keys, the entered value should be saved and the transition to another cell must be completed.

Of course, with a special option to enable this editing mode.

@ansgarbecker
Copy link
Collaborator

Are you sure fixing #937 does not do the job as well? I mean, does it have to be the arrow keys? Normally you can tab through the cells with the tab key, very similar to what you describe here.

@AJ1980
Copy link
Author

AJ1980 commented May 1, 2020

My dream (really) is to stay in edit mode after moving to another row. I can move to another row using up/down arrows.
For example I want to update quickly one cell in one column but several rows. It's bas idea with tab key only.

@mcvlad2000
Copy link

mcvlad2000 commented Apr 2, 2021

Main.pas
procedure TMainForm.AnyGridKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
...
VK_NEXT: if (g = DataGrid) and (g.FocusedNode = g.GetLast) then actDataShowNext.Execute;
else if Assigned(g.FocusedNode) then
begin
keybd_event(Key, 0, 0, 0);
g.EditNode(g.FocusedNode, g.FocusedColumn);
end;
end;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants