-
Notifications
You must be signed in to change notification settings - Fork 6
Description
WHAT
All elements, not just buttons, should display state changes due to focus and/or activation.
WHY
Tabbing to a button, I can press enter to ACTIVATE the button. This briefly changes the button state to BUTTON_PRESSED. See this ticket for details w/respect to buttons. This ticket expands that idea to the rest of the elements.
For example, when tabbing through these elements, only the label changes color, but the text inputs should also change to indicate better to the user where the field they are typing their input is.
Another example is with panes. Now the tabbing is broken in this example, but it makes sense to me to enable changing the state for these elements as well... basically when these panes have focus, their state should change to HAS_FOCUS, and the render function should then render the focus_bg and focus_fg colors.
I'm not sure what the expected behavior of elements within elements should be. So if a button is inside a pane, should the outer pane still render as has focus even though the focus has traversed to a child item? Honestly, I'm not sure about that case...