Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gjt.sp.jedit.gui
Class KeyEventWorkaround  view KeyEventWorkaround download KeyEventWorkaround.java

java.lang.Object
  extended byorg.gjt.sp.jedit.gui.KeyEventWorkaround

public class KeyEventWorkaround
extends java.lang.Object

This class contains various hacks to get keyboard event handling to behave in a consistent manner across Java implementations, many of which are hopelessly broken in this regard.

Version:
$Id: KeyEventWorkaround.java,v 1.3 2002/10/25 17:29:57 gfx Exp $

Field Summary
private static int last
           
private static int LAST_ALT
           
private static int LAST_BROKEN
           
private static int LAST_MOD
           
private static int LAST_NOTHING
           
private static int LAST_NUMKEYPAD
           
private static long lastKeyTime
           
 
Constructor Summary
KeyEventWorkaround()
           
 
Method Summary
private static void handleBrokenKeys(java.awt.event.KeyEvent evt, int keyCode)
           
static void numericKeypadKey()
          A workaround for non-working NumLock status in some Java versions.
static java.awt.event.KeyEvent processKeyEvent(java.awt.event.KeyEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastKeyTime

private static long lastKeyTime

last

private static int last

LAST_NOTHING

private static final int LAST_NOTHING
See Also:
Constant Field Values

LAST_ALT

private static final int LAST_ALT
See Also:
Constant Field Values

LAST_BROKEN

private static final int LAST_BROKEN
See Also:
Constant Field Values

LAST_NUMKEYPAD

private static final int LAST_NUMKEYPAD
See Also:
Constant Field Values

LAST_MOD

private static final int LAST_MOD
See Also:
Constant Field Values
Constructor Detail

KeyEventWorkaround

public KeyEventWorkaround()
Method Detail

processKeyEvent

public static java.awt.event.KeyEvent processKeyEvent(java.awt.event.KeyEvent evt)

numericKeypadKey

public static void numericKeypadKey()
A workaround for non-working NumLock status in some Java versions.

Since:
jEdit 4.0pre8

handleBrokenKeys

private static void handleBrokenKeys(java.awt.event.KeyEvent evt,
                                     int keyCode)