| java.lang.Object sun.awt.X11.XKeysym
XKeysym | public class XKeysym (Code) | | |
Inner Class :static class Keysym2JavaKeycode | |
Method Summary | |
public static char | convertKeysym(long ks, int state) | static Keysym2JavaKeycode | getJavaKeycode(XKeyEvent ev) Return java.awt.KeyEvent constant meaning (Java) keycode, derived from X Window KeyEvent.
Algorithm is, extract via XKeycodeToKeysym a proper keysym according to Xlib spec rules and
err exceptions, then search a java keycode in a table.
Some keysyms maps to more than one keycode, these would require extra processing. | static int | getJavaKeycodeOnly(XKeyEvent ev) | static long | getKeysym(XKeyEvent ev) Return keysym derived from a keycode and modifiers.
Usually an input method does this. | public static long | getUppercaseAlphabetic(long keysym) Return uppercase keysym correspondent to a given keysym. | public static boolean | isKPEvent(XKeyEvent ev) | public static void | main(String args) | static long | xkeycode2keysym(XKeyEvent ev, int ndx) |
keysym_lowercase | static long keysym_lowercase(Code) | | |
keysym_uppercase | static long keysym_uppercase(Code) | | |
convertKeysym | public static char convertKeysym(long ks, int state)(Code) | | |
getJavaKeycode | static Keysym2JavaKeycode getJavaKeycode(XKeyEvent ev)(Code) | | Return java.awt.KeyEvent constant meaning (Java) keycode, derived from X Window KeyEvent.
Algorithm is, extract via XKeycodeToKeysym a proper keysym according to Xlib spec rules and
err exceptions, then search a java keycode in a table.
Some keysyms maps to more than one keycode, these would require extra processing. If someone
points me to such a keysym.
|
getJavaKeycodeOnly | static int getJavaKeycodeOnly(XKeyEvent ev)(Code) | | |
getKeysym | static long getKeysym(XKeyEvent ev)(Code) | | Return keysym derived from a keycode and modifiers.
Usually an input method does this. However non-system input methods (e.g. Java IMs) do not.
For rules, see "Xlib - C Language X Interface",
MIT X Consortium Standard
X Version 11, Release 6
Ch. 12.7
XXX TODO: or maybe not to do: process Mode Lock and therefore
not only 0-th and 1-st but 2-nd and 3-rd keysyms for a keystroke.
|
getUppercaseAlphabetic | public static long getUppercaseAlphabetic(long keysym)(Code) | | Return uppercase keysym correspondent to a given keysym.
If input keysym does not belong to any lower/uppercase pair, return -1.
|
isKPEvent | public static boolean isKPEvent(XKeyEvent ev)(Code) | | |
xkeycode2keysym | static long xkeycode2keysym(XKeyEvent ev, int ndx)(Code) | | |
|
|