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

Accelerators don't work for plus key.

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u10
    • Fix Version/s: tbd
    • Component/s: javafx
    • Environment:

      Windows 7 64-bit
      Java 7u10 32-bit

      Description

      With Swing in a JMenuItem I can set an accelerator to be KeyEvent.VK_PLUS with a KeyEvent.CTRL_DOWN_MASK modifier. If I do this, when I press CTRL+SHIFT+EQUALS, since the plus sign on a standard US keyboard is obtained by holding SHIFT while pressing the equals key. It works.

      If in JavaFX I use an accelerator of new KeyCodeCombination(KeyCode.PLUS, KeyCombination.CTRL_DOWN), then pressing CTRL+SHIFT+EQUALS does not activate the accelerator. Nor does pressing CTRL+The_Numeric_Keypad_PLUS. Note that there is no KeyCode specifically for the numeric keypad plus sign as far as I can tell.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              swpalmer Scott Palmer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported: