mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 03:19:43 +02:00
LCL: Check TRadioButton when using keyboard accelerator ("&" in caption)
This commit is contained in:
parent
bc6df44ffa
commit
63f44cf8e7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user