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

ActionEvent.getModifiers does not return correct value for shift modifier

XMLWordPrintable

    • Cause Known
    • x86, sparc, x86_64
    • solaris_10, windows_7, windows_8

      ActionEvent.getModifiers does not return the correct value for shift + left mouse click on Button. The value returned by call to ActionEvent.getModifiers does not include ActionEvent.SHIFT_MASK modifier. This is reproducible with tiger and mustang.

      Steps to reproduce:
      1. Compile and run the attached code.
      2. Click on the button with shift key pressed and see the terminal window for output.

      The testcase checks for ActionEvent.SHIFT_MASK and InputEvent.SHIFT_DOWN_MASK.
      1. On Motif Toolkit, check for InputEvent.SHIFT_DOWN_MASK returns true and ActionEvent.SHIFT_MASK returns false.
      2. On XToolkit, check for InputEvent.SHIFT_DOWN_MASK returns false and ActionEvent.SHIFT_MASK returns true.
      3. On Windows, check for InputEvent.SHIFT_DOWN_MASK returns true and ActionEvent.SHIFT_MASK returns false.
      ###@###.### 10/25/04 13:07 GMT

            Unassigned Unassigned
            gramachasunw Girish Ramachandran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: