TToolButton: fix using AccelleratorChars (Issue #0024817).

git-svn-id: trunk@44871 -
This commit is contained in:
bart 2014-05-01 14:21:54 +00:00
parent 5f56400fe5
commit f62fa21a33

View File

@ -931,7 +931,7 @@ end;
function TToolButton.DialogChar(var Message: TLMKey): boolean;
begin
if IsAccel(Message.CharCode, Caption) and FToolBar.CanFocus then
if IsAccel(Message.CharCode, Caption) and FToolBar.ShowCaptions then
begin
Click;
Result := true;