mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-10 09:42:19 +01:00
lcl: set down state of speedbutton when button was invoked by accelerator (based on patch of Benito van der Zander #0011826)
git-svn-id: trunk@16815 -
This commit is contained in:
parent
a60139801c
commit
0607f55e77
@ -480,6 +480,8 @@ begin
|
|||||||
if IsAccel(Message.CharCode, Caption) then
|
if IsAccel(Message.CharCode, Caption) then
|
||||||
begin
|
begin
|
||||||
Result := True;
|
Result := True;
|
||||||
|
if GroupIndex <> 0 then
|
||||||
|
SetDown(not FDown);
|
||||||
Click;
|
Click;
|
||||||
end else
|
end else
|
||||||
Result := inherited DialogChar(Message);
|
Result := inherited DialogChar(Message);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user