Commit fccd6260 authored by Stephen Anthony's avatar Stephen Anthony
Browse files

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.
parent ce989df3
...@@ -140,6 +140,7 @@ void Widget::receivedFocus() ...@@ -140,6 +140,7 @@ void Widget::receivedFocus()
return; return;
_hasFocus = true; _hasFocus = true;
setFlags(Widget::FLAG_HILITED);
receivedFocusWidget(); receivedFocusWidget();
} }
...@@ -150,6 +151,7 @@ void Widget::lostFocus() ...@@ -150,6 +151,7 @@ void Widget::lostFocus()
return; return;
_hasFocus = false; _hasFocus = false;
clearFlags(Widget::FLAG_HILITED);
lostFocusWidget(); lostFocusWidget();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment