Function to get the state of a key

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • None
    • Affects Version/s: 5.0
    • Component/s: 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

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

              Created:
              Updated:
              Imported:
              Indexed: