Spin edits ignore clipboard shortcuts (cut, copy, paste)
Original Reporter info from Mantis: dezlov
-
Reporter name: Denis Kozlov
Original Reporter info from Mantis: dezlov
- Reporter name: Denis Kozlov
Description:
TSpinEdit, TFloatSpinEdit and any other TCustomFloatSpinEdit descendants are ignoring clipboard shortcuts (cut, copy, paste).
TCustomFloatSpinEdit descends from TCustomEdit, which handles clipboard shortcuts, but TCustomFloatSpinEdit overrides KeyPress method and ignores most of keys, including clipboard shortcut combinations.
Additional information:
For the reference, TCustomFloatSpinEdit.KeyPress from Lazarus 1.4.2 and TRUNK are same:
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]) then Key := #0;
if (Key = DefaultFormatSettings.DecimalSeparator) and (FDecimals = 0) then Key := #0;
end;
Mantis conversion info:
- Mantis ID: 28626
- Version: 1.5 (SVN)
- Fixed in version: 1.4.4
- Fixed in revision: r49766 (#da9882f5)
- Monitored by: » januszt29@interia.pl (Janusz Tomczak), » dezlov (Denis Kozlov)
- Target version: 1.4.4