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

KeyCode.DELETE used as accelerator on a MenuItem is suspected to corrupt the menu containing this MenuItem (on Windows)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 7u6
    • fx2.1, 7u6
    • javafx

      See attached capture.
      As you notice the rendering of the DELETE itself in the menu is strange: the icon doesn't look correct (it's way better on Mac).
      Rendering is not that important, but what imports is that when running Scene Builder on some systems such as Windows XP Pro Simplified Chinese you can't open the Edit menu at all (see DTL-4047).
      I suspect the root cause comes from the accelerator attached to Delete action within the Edit menu because if I comment the corresponding line and restart Scene Builder on the same system then I come able to open the Edit menu.
      The call I comment is "setAccelerator(new KeyCodeCombination(KeyCode.DELETE));"

        1. Delete.png
          Delete.png
          28 kB
        2. Mac_DELETE.png
          Mac_DELETE.png
          4 kB
        3. Win_DELETE.png
          Win_DELETE.png
          0.3 kB

            miflemi Mick Fleming
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: