mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Dialog windows now grab the keyboard focus (#31294)
* Dialog windows now grab the keyboard focus * Comment
This commit is contained in:
parent
90d19367f8
commit
0093fce5b4
1 changed files with 3 additions and 0 deletions
|
|
@ -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 += _ =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue