mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 06:39:12 +02:00
LCL: TLabel: Fixed TLabel.FocusControl select control without pressing ALT. Issue #33526
git-svn-id: trunk@57571 -
This commit is contained in:
parent
7aa9f045f5
commit
797b238648
@ -273,6 +273,7 @@ begin
|
|||||||
Result := False;
|
Result := False;
|
||||||
if not FShowAccelChar then exit;
|
if not FShowAccelChar then exit;
|
||||||
if FFocusControl = nil 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
|
if IsAccel(Message.CharCode, GetLabelText) and FFocusControl.CanFocus then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user