Highlight widgets when they gain and lose focus.

- This allows widgets that are navigated using the keyboard/joystick to look the same as when using the mouse.
- For R77 in particular, this really helps when seeing which button is currently selected.
This commit is contained in:
Stephen Anthony 2019-05-10 23:07:36 -02:30
parent ce989df3e2
commit fccd62607b
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,7 @@ void Widget::receivedFocus()
return;
_hasFocus = true;
setFlags(Widget::FLAG_HILITED);
receivedFocusWidget();
}
@ -150,6 +151,7 @@ void Widget::lostFocus()
return;
_hasFocus = false;
clearFlags(Widget::FLAG_HILITED);
lostFocusWidget();
}