LCL: fixed TMaskEdit left arrow does not move cursor. issue #28385

git-svn-id: trunk@49512 -
This commit is contained in:
zeljko 2015-07-09 08:25:11 +00:00
parent 391f253965
commit 3768a9fd84

View File

@ -782,8 +782,11 @@ end;
procedure TCustomMaskEdit.SelectPrevChar;
var
P: LongInt;
AStart: Integer;
AStop: Integer;
begin
if FCursorPos = 0 then Exit;
GetSel(AStart, AStop);
if (FCursorPos = 0) and (AStop - AStart <= 1) then Exit;
P := FCursorPos;
Dec(FCursorPos);
While (FCursorPos > 0) and IsLiteral(FMask[FCursorPos + 1]) do