SpinEx: dont call inherited KeyPress twice in TCustomSpinEx.KeyPress.

git-svn-id: branches/fixes_2_0@64012 -
This commit is contained in:
mattias 2020-10-15 11:21:08 +00:00
parent 886ab5f015
commit ebab00eb5b

View File

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