LCL: TSpeedButton: do not eat DialogChar when disabled, bug #24742

git-svn-id: trunk@42086 -
This commit is contained in:
mattias 2013-07-14 06:42:24 +00:00
parent 5f1bb4c689
commit af129c07e4

View File

@ -474,7 +474,7 @@ begin
// Sometimes LM_CHAR is received instead of LM_SYSCHAR, maybe intentionally
// (LCL handles it) or maybe sent by mistake. In either case exit.
if (Message.Msg <> LM_SYSCHAR) or not FShowAccelChar then Exit;
if IsAccel(Message.CharCode, Caption) then
if Enabled and IsAccel(Message.CharCode, Caption) then
begin
Result := True;
if GroupIndex <> 0 then