mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-08 23:58:27 +02:00
LCL/FloatSpinEdit: Fix KeyPress swallowing the 'e' of exponential notation.
This commit is contained in:
parent
7d66280e62
commit
e10b896d7e
@ -133,7 +133,7 @@ procedure TCustomFloatSpinEdit.KeyPress(var Key: char);
|
||||
begin
|
||||
inherited KeyPress(Key);
|
||||
if (Key in ['.',',']) then Key := DefaultFormatSettings.Decimalseparator;
|
||||
if not (Key in ['0'..'9', DefaultFormatSettings.DecimalSeparator,'+','-',#8,#9,^C,^X,^V,^Z]) then Key := #0;
|
||||
if not (Key in ['0'..'9', DefaultFormatSettings.DecimalSeparator,'+','-','e','E',#8,#9,^C,^X,^V,^Z]) then Key := #0;
|
||||
if (Key = DefaultFormatSettings.DecimalSeparator) and (FDecimals = 0) then Key := #0;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user