List of usage examples for java.awt Event KEY_ACTION
int KEY_ACTION
To view the source code for java.awt Event KEY_ACTION.
Click Source Link
From source file:EventTester.java
public boolean keyDown(Event e, int key) { int flags = e.modifiers; if (e.id == Event.KEY_PRESS) // a regular key showLine("Key Down: " + mods(flags) + key_name(e)); else if (e.id == Event.KEY_ACTION) // a function key showLine("Function Key Down: " + mods(flags) + function_key_name(key)); return true;//w w w .j a va 2 s .c o m }