mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 12:09:21 +02:00
LCL: maskedit, jump to dot by pressing the key from Ingo Steiniger (issue #14180)
git-svn-id: trunk@21118 -
This commit is contained in:
parent
f65b51e00b
commit
6f343b79e0
@ -1387,6 +1387,25 @@ begin
|
|||||||
Key := 0;
|
Key := 0;
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// goto a dot
|
||||||
|
if (Key = VK_OEM_PERIOD) then
|
||||||
|
begin
|
||||||
|
FCursorPos := FCursorPos+Pos('.', Copy(Text, (FCursorPos+1), Length(Text)-(FCursorPos+1)));
|
||||||
|
Key := 0;
|
||||||
|
SetCursorPos;
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
|
||||||
|
// goto a comma
|
||||||
|
if (Key = VK_OEM_COMMA) then
|
||||||
|
begin
|
||||||
|
FCursorPos := FCursorPos+Pos(',', Copy(Text, (FCursorPos+1), Length(Text)-(FCursorPos+1)));
|
||||||
|
SetCursorPos;
|
||||||
|
Key := 0;
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user