Auto-focus the input field in the tag list

This commit is contained in:
Tamás Bálint Misius 2023-10-17 09:55:47 +02:00
parent 9f50249ca8
commit 7f0f9ad132
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -31,6 +31,7 @@ TagsView::TagsView():
tagInput->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
tagInput->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
AddComponent(tagInput);
FocusComponent(tagInput);
addButton = new ui::Button(ui::Point(tagInput->Position.X+tagInput->Size.X+4, tagInput->Position.Y), ui::Point(40, 16), "Add");
addButton->Appearance.icon = IconAdd;