Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.
/ nppFSIPlugin Public archive
forked from ppv/NPPFSIPlugin

Commit 058fa6e

Browse files
committed
Future-proof keyboard interaction with the console window's command line
Cf. notepad-plus-plus/notepad-plus-plus@9e7f1e5
1 parent b7d9cd9 commit 058fa6e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Source/Plugin/Src/FSIPlugin.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ procedure TFsiPlugin.DoUpdateUI(const hwnd: HWND; const updated: Integer);
268268
procedure TFsiPlugin.DoNppnShutdown;
269269
begin
270270
if Assigned(FSIHostForm) then
271+
begin
272+
SendNppMessage(NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, FSIHostForm.Handle);
271273
FSIHostForm.Close;
274+
end;
272275
end;
273276
{$ENDREGION}
274277

@@ -430,6 +433,7 @@ procedure TFsiPlugin.ToggleFSI;
430433
if not Assigned(FSIHostForm) then
431434
begin
432435
Application.CreateForm(TFrmFSIHost, FSIHostForm);
436+
SendNppMessage(NPPM_MODELESSDIALOG, MODELESSDIALOGADD, FSIHostForm.Handle);
433437
FSIHostForm.OnClose := DoOnFSIFormClose;
434438
end;
435439

0 commit comments

Comments
 (0)