|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.jedit.gui.KeyEventWorkaround
public class KeyEventWorkaround
Various hacks to get keyboard event handling to behave in a consistent manner across Java implementations. This type of stuff should not be necessary, but Java's keyboard handling is crap, to put it mildly.
| Constructor Summary | |
|---|---|
KeyEventWorkaround()
|
|
| Method Summary | |
|---|---|
static boolean |
isBindable(int keyCode)
|
static boolean |
isMacControl(java.awt.event.KeyEvent evt)
Apple sucks. |
static boolean |
isNumericKeypad(int keyCode)
|
static boolean |
isPrintable(int keyCode)
We need to know if a keycode can potentially result in a keytyped. |
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 |
| Constructor Detail |
|---|
public KeyEventWorkaround()
| Method Detail |
|---|
public static boolean isBindable(int keyCode)
public static boolean isPrintable(int keyCode)
public static boolean isMacControl(java.awt.event.KeyEvent evt)
public static boolean isNumericKeypad(int keyCode)
public static java.awt.event.KeyEvent processKeyEvent(java.awt.event.KeyEvent evt)
public static void numericKeypadKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||