mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 20:59:36 +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;
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user