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

Unable to tell which button is pressed/released on a mouse event

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1.8, 1.3.0, 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_7

      Description

      The old InputEvent modifiers have same values for keyboard
      and mouse buttons. So in certain situations there is no way
      to distinguish which one is pressed or when more than one is held
      simultanously. These situations would include the cases when more
      than one mouse button is down at the same time, or when a
      modifier key is used to modify a mouse event.



      ingrid.yao@Eng 2001-05-10

      CAP program member complains the new InputEvent modifiers are
      likely to cause many programs to fail since many programmers
      probably do something like:

      [...]
      if (e.getModifiers() == InputEvent.BUTTON1_MASK)
      {
      }
      [...]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ssisunw Ssi Ssi (Inactive)
              Reporter:
              ehawkessunw Eric Hawkes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: