You've already forked lazarus-ccr
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user