The OnKeyPress event in TComboBox does not trigger
Original Reporter info from Mantis: rfsanet
-
Reporter name:
Original Reporter info from Mantis: rfsanet
- Reporter name:
Description:
The OnKeyPress event in TComboBox does not trigger when the CharCase property is different from ecNormal and the user types a character in oposite case to that used in the property.
For example: the user chose ecUppercase in the CharCase property and it typed "s"
As a solution I suggest to alter the TCustomComboBox.KeyPress method for the following:
procedure TCustomComboBox.KeyPress(var Key: char);
begin
//Convert character cases if FCharCase is not ecNormalCase
case FCharCase of
ecLowerCase: Key := LowerCase(Key);
ecUpperCase: Key := UpCase(Key);
end;
inherited KeyPress(Key);
end;
Mantis conversion info:
- Mantis ID: 25642
- OS: Windows
- OS Build: 8
- Platform: i386-win32
- Version: 1.3 (SVN)