From b325d262819e4bc1278b0705915d6451beeaf9c6 Mon Sep 17 00:00:00 2001 From: Joeri Date: Sat, 21 Feb 2026 14:08:48 +0100 Subject: [PATCH] Focus pop-up --- cleanup.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cleanup.ps1 b/cleanup.ps1 index 67fb6fd..56dfe84 100644 --- a/cleanup.ps1 +++ b/cleanup.ps1 @@ -65,6 +65,11 @@ $form.AcceptButton = $btnOK # Enter → OK $form.CancelButton = $btnCancel # Esc → Cancel # Show the dialog +$form.Add_Shown({ + $this.Activate() + $txt.Focus() +}) + $result = $form.ShowDialog() # Handle the user’s choice