Fix lef/right arrow keys while editing dates
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1967 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
d47fca3e56
commit
cdd864f4d3
@ -195,7 +195,7 @@ begin
|
||||
Key := VK_UNKNOWN;
|
||||
end
|
||||
else
|
||||
if Key in [VK_RETURN, VK_TAB] then
|
||||
if Key in [VK_RETURN, VK_TAB, VK_RIGHT, VK_LEFT] then
|
||||
begin
|
||||
CellEditor.Caption:= NormalizeDate(CellEditor.Caption, theValue);
|
||||
if Length(CellEditor.Caption) = 0 then
|
||||
@ -206,6 +206,7 @@ begin
|
||||
theValue := StrToDate(CellEditor.Caption);
|
||||
Field.DataSet.Edit;
|
||||
Field.AsDateTime := theValue;
|
||||
CellEditor.SelectAll;
|
||||
updated := True;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user