Fixed a minor order of operations bugs that was causing focus via click

to not work properly in all cases.
This commit is contained in:
casey langen 2019-03-12 21:55:15 -07:00
parent 19d7d10543
commit 6cd3614641

View File

@ -263,8 +263,8 @@ bool LayoutBase::SetFocus(IWindowPtr focus) {
else {
for (size_t i = 0; i < this->focusable.size(); i++) {
if (this->focusable[i] == focus) {
this->EnsureValidFocus();
this->focused = i;
this->EnsureValidFocus();
return true;
}
}