mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:49:18 +02:00
ideintf: hide HTML hint window with ESC key. Issue #30266, patch by Cyrax
git-svn-id: trunk@52501 -
This commit is contained in:
parent
48fe37a204
commit
baf3f396bf
@ -140,9 +140,14 @@ type
|
||||
function(Owner: TComponent): TAbstractIDEHTMLProvider;
|
||||
|
||||
|
||||
{ TSolidHintWindowRendered }
|
||||
|
||||
TSolidHintWindowRendered = class(THintWindowRendered)
|
||||
protected
|
||||
procedure WMNCHitTest(var Message: TLMessage); message LM_NCHITTEST;
|
||||
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
|
||||
public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
end;
|
||||
|
||||
{ THintWindowManager }
|
||||
@ -207,6 +212,22 @@ begin
|
||||
Message.Result := HTCLIENT;
|
||||
end;
|
||||
|
||||
procedure TSolidHintWindowRendered.KeyDown(var Key: Word; Shift: TShiftState);
|
||||
Var
|
||||
AOldKey : Word;
|
||||
begin
|
||||
AOldKey := Key;
|
||||
inherited KeyDown(Key, Shift);
|
||||
if AOldKey=VK_ESCAPE then
|
||||
Hide;
|
||||
end;
|
||||
|
||||
constructor TSolidHintWindowRendered.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited Create(AOwner);
|
||||
KeyPreview := True;
|
||||
end;
|
||||
|
||||
{ THelpDBIRegExprMessage }
|
||||
|
||||
constructor THelpDBIRegExprMessage.Create(TheNode: THelpNode;
|
||||
|
Loading…
Reference in New Issue
Block a user