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

Key event consume() method doesn't work

    Details

    • Subcomponent:
    • Introduced In Version:
      9
    • Verification:
      Verified

      Description

      Key event consume() method doesn't work.
      Please use attached POC to reproduce.
      Tagging as regression because it worked properly in older versions of 9 (e.g, 9 b13).

      ----
      Below goes info from Evergreen test executors:

      Testsuite name: FXCompatibilityManual
      Test name(s): graphics/api/control/ToggleButtonTest2Test.java
      Product(s) tested: JDK9b125 (64bit)
      OS/architecture: Mac10.11-x64

      Reproducible: Always
      Reproducible on machine: Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression:
      [If Regression] Regression introduced in release/build:
      Test result on the last GAed release for this train:
      [if Fail] Test result on FCS:

      Is it a platform specific issue:
      [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing:
      [If new configuration testing] Issue specific to execution mode or OS/browser version:

      Steps to reproduce:
      1. Install Test build JDK9b125 (64bit) and set JAVA_HOME env
      2. use test bundle:java-client-9-manual.tar.gz and extract to a folder of java-client-9-manual <WS>
      3. Install ANT (version:1.9.7) and set ANT_HOME env
      4. Change javafx.home path in build.properties file(under the folder <WS>)
      5 Enter the testsuite "JavaCompatibilityManual" directory(under the folder<WS>) and run command: ant run-manual
      6. Run the case: graphics/api/control/ToggleButtonTest2Test.java in the harness.

      Instructions:
      1.Select the 'boundsInParent' Checkbox & rectangle is around the ToggleButton.
      2.Click on the ToggleButton & press Left Arrow key . Observe that ToggleButton & boundsInParent rectangle translates left side.
      3.Press Right Arrow key . Observe that ToggleButton & boundsInParent rectangle translates right side.
      4.Press Up Arrow key. Observe that ToggleButton & boundsInParent rectangle translates Up side.
      5.Press Down Arrow key. Observe that ToggleButton & boundsInParent rectangle translates Down side.

      Actual result:
      The Toggle button can not translate up/down side continuously when pressing up/down arrow key several times.
      Press up arrow key once,the button translates up side and loses focus;
      Press up arrow key again,the button can not translates up side.

      By the way, JDK8 on mac, The Toggle button can translate up/down side continuously when pressing up/down arrow key several times

        Attachments

        1. Main.java
          4 kB
        2. Main.java
          4 kB

          Issue Links

            Activity

              People

              • Assignee:
                jgiles Jonathan Giles
                Reporter:
                tonyli Tony Li
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: