mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 17:40:30 +02:00
SpinEx: don't call inherited KeyPress twice in TCustomSpinEditEx.EditKeyPress.
git-svn-id: trunk@63795 -
This commit is contained in:
parent
c4d125495e
commit
e73e881289
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user