Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8127925

Control call to setFocusTraversable make it so focusTraversable cannot be set on a Control via css

    XMLWordPrintable

Details

    Description

      Obscure little bug, but this code causes a flag to be set on focusTraversable that indicates the property was set by the user, which means it won't get overriden by css.

          protected Control() {
              setFocusTraversable(true);
          }

      The property should be initialized like so.

          protected Control() {
              StyleableProperty prop = StyleableProperty.getStyleableProperty(focusTraversableProperty());
              prop.set(this, true, null);
          }

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: