us.ihmc.utilities.keyboardAndMouse
Class RepeatingReleasedEventsFixer

java.lang.Object
  extended by us.ihmc.utilities.keyboardAndMouse.RepeatingReleasedEventsFixer
All Implemented Interfaces:
java.awt.event.AWTEventListener, java.util.EventListener

public class RepeatingReleasedEventsFixer
extends java.lang.Object
implements java.awt.event.AWTEventListener

Copied verbatim from: here. This fixes a bug in Linux where KEY_RELEASED events are fired while KEY_PRESSED is engaged, making handling of events that need to change on this switch difficult to manage.

Author:
Endre St¿lsvik

Nested Class Summary
static interface RepeatingReleasedEventsFixer.Reposted
          Marker interface that denotes that the KeyEvent in question is reposted from some AWTEventListener, including this.
static class RepeatingReleasedEventsFixer.RepostedKeyEvent
          Dead simple extension of KeyEvent that implements RepeatingReleasedEventsFixer.Reposted.
 
Constructor Summary
RepeatingReleasedEventsFixer()
           
 
Method Summary
 void eventDispatched(java.awt.AWTEvent event)
           
 void install()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatingReleasedEventsFixer

public RepeatingReleasedEventsFixer()
Method Detail

install

public void install()

remove

public void remove()

eventDispatched

public void eventDispatched(java.awt.AWTEvent event)
Specified by:
eventDispatched in interface java.awt.event.AWTEventListener