ExCtrls: Fix CurrSpinEditEx swalling typing of decimalseparator.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8479 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-09-13 18:01:02 +00:00
parent da1df02e83
commit 865c17f414

View File

@ -320,7 +320,7 @@ begin
{Disallow any key that is not a digit or -
Tab, BackSpace, Cut, Paste, Copy, Undo of course should be passed onto inherited KeyPress
}
if not (Key in (Digits + AllowedControlChars + ['-'])) then Key := #0;
if not (Key in (Digits + AllowedControlChars + ['-', FDecimalSeparator])) then Key := #0;
if (Key = '-') and IsLimited and (MinValue >= 0) then Key := #0;
end;