mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-29 09:29:44 +02:00
LCL: TCustomMaskEdit, do not set selection if control isn't focused. issue #17942
git-svn-id: trunk@49301 -
This commit is contained in:
parent
6cf8c56cfc
commit
41459427dc
@ -757,7 +757,7 @@ begin
|
||||
begin
|
||||
if FCursorPos < 0 then FCursorPos := 0
|
||||
else if FCursorPos > FMaskLength then FCursorPos := FMaskLength;
|
||||
if FCursorPos + 1 > FMaskLength then
|
||||
if (FCursorPos + 1 > FMaskLength) or not Focused then
|
||||
SetSel(FCursorPos, FCursorPos)
|
||||
else
|
||||
SetSel(FCursorPos, FCursorPos + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user