Dialog windows now grab the keyboard focus (#31294)

* Dialog windows now grab the keyboard focus

* Comment
This commit is contained in:
Winkarst 2024-09-19 17:01:54 +03:00 • committed by GitHub
parent 90d19367f8
commit 0093fce5b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,6 +87,9 @@ public sealed partial class DialogWindow : FancyWindow
Prompts.AddChild(box);
}
// Grab keyboard focus for the first dialog entry
_promptLines[0].Item2.GrabKeyboardFocus();
OkButton.OnPressed += _ => Confirm();
CancelButton.OnPressed += _ =>