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

Function to get the state of a key

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • 5.0
    • client-libs
    • x86
    • linux

      A DESCRIPTION OF THE REQUEST :
      It would be nice to have a function to get the state of a key. E.g. I need to detect in my mousewheel listener if the Ctrl key is down or not.
      So I propose to add a function like this: boolean getKeyState(int key)
      so I can use getKeyState(KeyEvent.VK_Control) to see if the key is down at the moment the function is called.

      JUSTIFICATION :
      It would be nice to have a function to get the state of a key. E.g. I need to detect in my mousewheel listener if the Ctrl key is down or not.
      So I propose to add a function like this: boolean getKeyState(int key)
      so I can use getKeyState(KeyEvent.VK_Control) to see if the key is down at the moment the function is called.


      ACTUAL -
      no possibility to get a keyState

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: