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

git-svn-id: branches/fixes_1_8@57814 -
This commit is contained in:
mattias 2018-05-07 18:17:15 +00:00
parent f9306c95d1
commit 65ac7e9977

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