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

Menu.onAction may not be called when TextInputControl node is focused

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx
    • Product: javafx-2.2.0beta
      Platform: macosx-universal
      Build-Number: 449
      Build-ID: 2012-06-06_17-14-22

      Start simple test case attached.
      When you enter some text in the TextField, then use shortcut for the undo action (ctl / cmd Z), the text is updated to its previous value BUT the undoMenu.onAction is not called.
      When you enter some text in the ComboBox text field, then use shortcut for the undo action, the text is updated AND the undoMenu.onAction is called.
      This behavior is not homogeneous.

      Finally, if you use the system menu bar, you will get the text updated AND the menu.onAction called in both cases.
      I think this is the correct behavior.

        1. TestMenus.java
          2 kB
          Sandra Lions-piron

            mfox Martin Fox
            slions Sandra Lions-piron
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported: