mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 17:01:35 +02:00
TCustomComboBox: call inherited (Utf8)KeyPress before changing the case (when CharCase <> ecNormal)
git-svn-id: trunk@44866 -
This commit is contained in:
parent
f7c6916db6
commit
9cc96a93a2
@ -566,22 +566,24 @@ end;
|
||||
|
||||
procedure TCustomComboBox.KeyPress(var Key: char);
|
||||
begin
|
||||
//First invoke OnKeyPress, or else CharCase may be reverted again
|
||||
inherited KeyPress(Key);
|
||||
//Convert character cases if FCharCase is not ecNormalCase
|
||||
case FCharCase of
|
||||
ecLowerCase: Key := LowerCase(Key);
|
||||
ecUpperCase: Key := UpCase(Key);
|
||||
end;
|
||||
inherited KeyPress(Key);
|
||||
end;
|
||||
|
||||
procedure TCustomComboBox.UTF8KeyPress(var UTF8Key: TUTF8Char);
|
||||
begin
|
||||
//First invoke OnUtf8KeyPress, or else CharCase may be reverted again
|
||||
inherited UTF8KeyPress(UTF8Key);
|
||||
//Convert character cases if FCharCase is not ecNormalCase
|
||||
case FCharCase of
|
||||
ecLowerCase: UTF8Key := UTF8LowerCase(UTF8Key);
|
||||
ecUpperCase: UTF8Key := UTF8UpperCase(UTF8Key);
|
||||
end;
|
||||
inherited UTF8KeyPress(UTF8Key);
|
||||
end;
|
||||
|
||||
procedure TCustomComboBox.MouseUp(Button: TMouseButton; Shift:TShiftState;
|
||||
|
Loading…
Reference in New Issue
Block a user