LCL: Check TRadioButton when using keyboard accelerator ("&" in caption)

This commit is contained in:
n7800 2024-08-16 01:15:11 +05:00 committed by Martin
parent bc6df44ffa
commit 63f44cf8e7

View File

@ -115,6 +115,8 @@ begin
if IsAccel(Message.CharCode, Caption) and CanFocus then if IsAccel(Message.CharCode, Caption) and CanFocus then
begin begin
SetFocus; SetFocus;
if Focused then
Checked := True;
Result := True; Result := True;
end else end else
Result := inherited; Result := inherited;