The MouseEvent modifiers have wrong value with 2 buttons pressed

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.4.0
    • Affects Version/s: 1.3.0, 1.4.0
    • Component/s: client-libs
    • None
    • beta
    • generic, x86
    • linux, solaris_7
    • Verified



      Name: ssR10077 Date: 07/14/2000


      After pressing first mouse button, when second is button pressed or released,
      modifiers are set for both buttons. It contradicts with doc for MouseEvent.
      The behavior can be tested with:

      import java.awt.*;
      import java.awt.event.*;

      public class ModifiersTest extends Frame {
          public static void main(String argv[]) {
      ModifiersTest test = new ModifiersTest();
      test.setVisible(true);
          }

          ModifiersTest() {
      super("ModifiersTest");
      enableEvents(AWTEvent.MOUSE_EVENT_MASK
      | AWTEvent.MOUSE_MOTION_EVENT_MASK);
      setSize(200,200);
          }

          protected void processMouseEvent(MouseEvent e) {
      System.out.println(e);
      super.processMouseEvent(e);
          }
      }
        
      ======================================================================

            Assignee:
            Ssi Ssi (Inactive)
            Reporter:
            Ssi Ssi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: