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

      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);
          }

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

              Created:
              Updated:
              Resolved:
              Imported: