* Test entered tree fix
* Use Opened override
* Fix keyboard focus on window open for DialogWindow
This affects Phone, Pray, Rename, and multiple other admin verbs.
* Clean up
_focused = false;
LabelLineEdit.Text = _label;
};
+ }
- // Give the editor keybard focus, since that's the only
+ protected override void Opened()
+ {
+ base.Opened();
+
+ // Give the editor keyboard focus, since that's the only
// thing the user will want to be doing with this UI
LabelLineEdit.GrabKeyboardFocus();
}
Prompts.AddChild(box);
}
- // Grab keyboard focus for the first dialog entry
- _promptLines[0].Item2.GrabKeyboardFocus();
-
OkButton.OnPressed += _ => Confirm();
CancelButton.OnPressed += _ =>
OpenCentered();
}
+ protected override void Opened()
+ {
+ base.Opened();
+
+ // Grab keyboard focus for the first dialog entry
+ _promptLines[0].Item2.GrabKeyboardFocus();
+ }
+
private void Confirm()
{
var results = new Dictionary<string, string>();