LCL: TLabel: Fixed TLabel.FocusControl select control without pressing ALT. Issue #33526

git-svn-id: trunk@57571 -
This commit is contained in:
michl 2018-03-28 20:42:11 +00:00
parent 7aa9f045f5
commit 797b238648

View File

@ -273,6 +273,7 @@ begin
Result := False;
if not FShowAccelChar then exit;
if FFocusControl = nil then exit;
if KeyDataToShiftState(Message.KeyData) * [ssCtrl, ssAlt, ssShift] <> [ssAlt] then exit;
if IsAccel(Message.CharCode, GetLabelText) and FFocusControl.CanFocus then
begin