Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Do not paint focus on disabled components #119

Open
kschaefe opened this issue May 31, 2013 · 0 comments
Open

Do not paint focus on disabled components #119

kschaefe opened this issue May 31, 2013 · 0 comments

Comments

@kschaefe
Copy link

It is possible for a component to be disabled while it has focus. Component.hasFocus will still return true. SubstanceCoreUtilities.paintFocus (line 1581) should request the focus strength with a combination of hasFocus and isEnabled:

float focusStrength = transitionAwareUI.getTransitionTracker()
.getFocusStrength(focusedComp.hasFocus() && focusedComp.isEnabled());

This will allow disabled component to not paint focus.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant