mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 16:49:23 +02:00
* fixed crash with empty labels
This commit is contained in:
parent
2d4ade242c
commit
9db0c54694
@ -3046,13 +3046,17 @@ BEGIN
|
|||||||
Case Event.What Of
|
Case Event.What Of
|
||||||
evNothing: Exit; { Speed up exit }
|
evNothing: Exit; { Speed up exit }
|
||||||
evMouseDown: FocusLink; { Focus link view }
|
evMouseDown: FocusLink; { Focus link view }
|
||||||
evKeyDown: Begin
|
evKeyDown:
|
||||||
|
Begin
|
||||||
|
if assigned(text) then
|
||||||
|
begin
|
||||||
C := HotKey(Text^); { Check for hotkey }
|
C := HotKey(Text^); { Check for hotkey }
|
||||||
If (GetAltCode(C) = Event.KeyCode) OR { Alt plus char }
|
If (GetAltCode(C) = Event.KeyCode) OR { Alt plus char }
|
||||||
((C <> #0) AND (Owner^.Phase = phPostProcess) { Post process phase }
|
((C <> #0) AND (Owner^.Phase = phPostProcess) { Post process phase }
|
||||||
AND (UpCase(Event.CharCode) = C)) Then { Upper case match }
|
AND (UpCase(Event.CharCode) = C)) Then { Upper case match }
|
||||||
FocusLink; { Focus link view }
|
FocusLink; { Focus link view }
|
||||||
End;
|
end;
|
||||||
|
end;
|
||||||
evBroadcast: If ((Event.Command = cmReceivedFocus)
|
evBroadcast: If ((Event.Command = cmReceivedFocus)
|
||||||
OR (Event.Command = cmReleasedFocus)) AND { Focus state change }
|
OR (Event.Command = cmReleasedFocus)) AND { Focus state change }
|
||||||
(Link <> Nil) Then Begin
|
(Link <> Nil) Then Begin
|
||||||
@ -4141,7 +4145,10 @@ END;
|
|||||||
END.
|
END.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.33 2005-02-14 17:13:18 peter
|
Revision 1.34 2005-03-06 21:31:15 florian
|
||||||
|
* fixed crash with empty labels
|
||||||
|
|
||||||
|
Revision 1.33 2005/02/14 17:13:18 peter
|
||||||
* truncate log
|
* truncate log
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user