From e91c329feb290a4a2a78a429dfbbd8f7c36eee1a Mon Sep 17 00:00:00 2001 From: mshafer1 <2565361+mshafer1@users.noreply.github.com> Date: Sat, 11 Jan 2025 08:57:44 -0600 Subject: [PATCH] focus the close button before first launch and on every show to make title text consistently not selected --- ntfysh_client/NotificationDialog.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntfysh_client/NotificationDialog.cs b/ntfysh_client/NotificationDialog.cs index 9ad7d2f..d856f2c 100644 --- a/ntfysh_client/NotificationDialog.cs +++ b/ntfysh_client/NotificationDialog.cs @@ -101,6 +101,7 @@ namespace ntfysh_client // ok, show the window Show(); + ButtonClose.Focus(); // make sure the window is focused, not the title box. SetWindowPosition(); if (playNotificationSound) PlayNotificationSound(); @@ -206,6 +207,7 @@ namespace ntfysh_client { Opacity = 0; ShowNotification("Title", "Message"); + ButtonClose.Focus(); Visible = false; Opacity = 1; }