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

the current behavior for a node focusability is counter intuitive

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • fx1.2
    • fx1.2
    • javafx

    Description

      Currently a node can receive a focus if it is both focusable and has at least one key event handler attached to it and all nodes are focusable by default. These two things come as a surprise to quite a few users. Many do not agree that a key listener is a requirement for a node to be focusable.

      To improve this I suggest the following changes:
      node is not focusable by default and key handler is not required for a node to get focused.
      there are two exceptions to this: Control and SwingComponent are to be focusable by default.

      the suggested patch is in the attachment

      IMPORTANT: this change is not backward compatible

      Attachments

        Activity

          People

            idk Igor Kushnirskiy (Inactive)
            idk Igor Kushnirskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: