mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 07:19:22 +02:00
LCL: fixed TMaskEdit left arrow does not move cursor. issue #28385
git-svn-id: trunk@49512 -
This commit is contained in:
parent
391f253965
commit
3768a9fd84
@ -782,8 +782,11 @@ end;
|
|||||||
procedure TCustomMaskEdit.SelectPrevChar;
|
procedure TCustomMaskEdit.SelectPrevChar;
|
||||||
var
|
var
|
||||||
P: LongInt;
|
P: LongInt;
|
||||||
|
AStart: Integer;
|
||||||
|
AStop: Integer;
|
||||||
begin
|
begin
|
||||||
if FCursorPos = 0 then Exit;
|
GetSel(AStart, AStop);
|
||||||
|
if (FCursorPos = 0) and (AStop - AStart <= 1) then Exit;
|
||||||
P := FCursorPos;
|
P := FCursorPos;
|
||||||
Dec(FCursorPos);
|
Dec(FCursorPos);
|
||||||
While (FCursorPos > 0) and IsLiteral(FMask[FCursorPos + 1]) do
|
While (FCursorPos > 0) and IsLiteral(FMask[FCursorPos + 1]) do
|
||||||
|
Loading…
Reference in New Issue
Block a user