SpinEx: don't call inherited KeyPress twice in TCustomSpinEditEx.EditKeyPress.

git-svn-id: trunk@63795 -
This commit is contained in:
bart 2020-08-19 19:45:47 +00:00
parent c4d125495e
commit e73e881289

View File

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