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

(ctl + a) menu item onAction not invoked when ListView or TreeView is focused

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 7u6
    • javafx

      Use simple test case attached.
      It defines a menu bar with menu item "Select All" and ctl + A accelerator,
      and a simple scene graph containing a button, a ListView and a TreeView.
      When the button is focused, typing (ctl + a) makes the onAction method invoked.
      When the ListView or TreeView is focused, the onAction is no more invoked.

      Note that we get the issue only when we do not use the system menu bar.
      When using the system menu bar (mac os), the onAction method is invoked whatever node is focused as expected.

        1. TestMenus.java
          3 kB
          Sandra Lions-piron

            miflemi Mick Fleming
            slions Sandra Lions-piron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: