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

Cursor keys don't work as accelerators

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • 8
    • 7u40, 8
    • javafx
    • Windows 7 64-bit
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b108)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b50, mixed mode)

      I have registered accelerator keys with the Scene (i.e. they are not associated with any control like a button or menu item). For KeyCodeCombination I am using cursor keys, e.g. new KeyCodeCombination(KeyCode.RIGHT). This is used to finely position selected elements in my UI. At first other controls with the focus appeared to be stealing they cursor key presses, e.g. obviously text fields would, so do tables and trees, but I eliminated that issue by requesting focus on my own node. I am certain that I had cursor keys working as accelerators in this case, but now they are not.

      Ah.. I have just reproduce working cursor key accelerators with Java 8b106, but the same code fails with Java 8b108.

            psafrata Pavel Šafrata
            swpalmer Scott Palmer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: