CHAR_UNDEFINED
public static final char CHAR_UNDEFINED
The only char with no valid Unicode interpretation. This is used for
key pressed and key released events which do not have a valid keyChar.
KEY_FIRST
public static final int KEY_FIRST
This is the first id in the range of event ids used by this class.
KEY_LAST
public static final int KEY_LAST
This is the last id in the range of event ids used by this class.
KEY_LOCATION_LEFT
public static final int KEY_LOCATION_LEFT
Indicates the key is on the left side of the keyboard, such as the left
shift.
KEY_LOCATION_NUMPAD
public static final int KEY_LOCATION_NUMPAD
Indicates the key is on the numeric pad, such as the numpad 0.
KEY_LOCATION_RIGHT
public static final int KEY_LOCATION_RIGHT
Indicates the key is on the right side of the keyboard, such as the right
shift.
KEY_LOCATION_STANDARD
public static final int KEY_LOCATION_STANDARD
Indicates a standard key location, with no left/right variants and not
on the numeric pad.
KEY_LOCATION_UNKNOWN
public static final int KEY_LOCATION_UNKNOWN
Indicates unknown or irrelavent key location. This is also used for
key typed events, which do not need a location.
KEY_PRESSED
public static final int KEY_PRESSED
This event id indicates a key was pressed.
KEY_RELEASED
public static final int KEY_RELEASED
This event it indicates a key was released.
KEY_TYPED
public static final int KEY_TYPED
This event id indicates a key was typed, which is a key press followed
by a key release to generate an actual Unicode character. It may take
several key presses to generate one key typed event, and some action
keys have no corresponding key typed.
VK_0
public static final int VK_0
The virtual key VK_0.
VK_1
public static final int VK_1
The virtual key VK_1.
VK_2
public static final int VK_2
The virtual key VK_2.
VK_3
public static final int VK_3
The virtual key VK_3.
VK_4
public static final int VK_4
The virtual key VK_4.
VK_5
public static final int VK_5
The virtual key VK_5.
VK_6
public static final int VK_6
The virtual key VK_6.
VK_7
public static final int VK_7
The virtual key VK_7.
VK_8
public static final int VK_8
The virtual key VK_8.
VK_9
public static final int VK_9
The virtual key VK_9.
VK_A
public static final int VK_A
The virtual key VK_A.
VK_ACCEPT
public static final int VK_ACCEPT
The virtual key VK_ACCEPT.
VK_ADD
public static final int VK_ADD
The virtual key VK_ADD.
VK_AGAIN
public static final int VK_AGAIN
The virtual key VK_AGAIN.
VK_ALL_CANDIDATES
public static final int VK_ALL_CANDIDATES
The virtual key VK_ALL_CANDIDATES.
VK_ALPHANUMERIC
public static final int VK_ALPHANUMERIC
The virtual key VK_ALPHANUMERIC.
VK_ALT
public static final int VK_ALT
The virtual key VK_ALT.
VK_ALT_GRAPH
public static final int VK_ALT_GRAPH
The virtual key VK_ALT_GRAPH.
VK_AMPERSAND
public static final int VK_AMPERSAND
The virtual key VK_AMPERSAND.
VK_ASTERISK
public static final int VK_ASTERISK
The virtual key VK_ASTERISK.
VK_AT
public static final int VK_AT
The virtual key VK_AT.
VK_B
public static final int VK_B
The virtual key VK_B.
VK_BACK_QUOTE
public static final int VK_BACK_QUOTE
The virtual key VK_BACK_QUOTE.
VK_BACK_SLASH
public static final int VK_BACK_SLASH
The virtual key VK_BACK_SLASH.
VK_BACK_SPACE
public static final int VK_BACK_SPACE
The virtual key Backspace, which will always map to '\b'.
VK_BEGIN
public static final int VK_BEGIN
The 'begin' key VK_BEGIN
VK_BRACELEFT
public static final int VK_BRACELEFT
The virtual key VK_BRACELEFT.
VK_BRACERIGHT
public static final int VK_BRACERIGHT
The virtual key VK_BRACERIGHT.
VK_C
public static final int VK_C
The virtual key VK_C.
VK_CANCEL
public static final int VK_CANCEL
The virtual key Cancel.
VK_CAPS_LOCK
public static final int VK_CAPS_LOCK
The virtual key VK_CAPS_LOCK.
VK_CIRCUMFLEX
public static final int VK_CIRCUMFLEX
The virtual key VK_CIRCUMFLEX.
VK_CLEAR
public static final int VK_CLEAR
The virtual key VK_CLEAR.
VK_CLOSE_BRACKET
public static final int VK_CLOSE_BRACKET
The virtual key VK_CLOSE_BRACKET.
VK_CODE_INPUT
public static final int VK_CODE_INPUT
The virtual key VK_CODE_INPUT.
VK_COLON
public static final int VK_COLON
The virtual key VK_COLON.
VK_COMMA
public static final int VK_COMMA
The virtual key VK_COMMA.
VK_COMPOSE
public static final int VK_COMPOSE
The virtual key VK_COMPOSE.
VK_CONTEXT_MENU
public static final int VK_CONTEXT_MENU
The context-menu key VK_CONTEXT_MENU
VK_CONTROL
public static final int VK_CONTROL
The virtual key VK_CONTROL.
VK_CONVERT
public static final int VK_CONVERT
The virtual key VK_CONVERT.
VK_COPY
public static final int VK_COPY
The virtual key VK_COPY.
VK_CUT
public static final int VK_CUT
The virtual key VK_CUT.
VK_D
public static final int VK_D
The virtual key VK_D.
VK_DEAD_ABOVEDOT
public static final int VK_DEAD_ABOVEDOT
The virtual key VK_DEAD_ABOVEDOT.
VK_DEAD_ABOVERING
public static final int VK_DEAD_ABOVERING
The virtual key VK_DEAD_ABOVERING.
VK_DEAD_ACUTE
public static final int VK_DEAD_ACUTE
The virtual key VK_DEAD_ACUTE.
VK_DEAD_BREVE
public static final int VK_DEAD_BREVE
The virtual key VK_DEAD_BREVE.
VK_DEAD_CARON
public static final int VK_DEAD_CARON
The virtual key VK_DEAD_CARON.
VK_DEAD_CEDILLA
public static final int VK_DEAD_CEDILLA
The virtual key VK_DEAD_CEDILLA.
VK_DEAD_CIRCUMFLEX
public static final int VK_DEAD_CIRCUMFLEX
The virtual key VK_DEAD_CIRCUMFLEX.
VK_DEAD_DIAERESIS
public static final int VK_DEAD_DIAERESIS
The virtual key VK_DEAD_DIAERESIS.
VK_DEAD_DOUBLEACUTE
public static final int VK_DEAD_DOUBLEACUTE
The virtual key VK_DEAD_DOUBLEACUTE.
VK_DEAD_GRAVE
public static final int VK_DEAD_GRAVE
The virtual key VK_DEAD_GRAVE.
VK_DEAD_IOTA
public static final int VK_DEAD_IOTA
The virtual key VK_DEAD_IOTA.
VK_DEAD_MACRON
public static final int VK_DEAD_MACRON
The virtual key VK_DEAD_MACRON.
VK_DEAD_OGONEK
public static final int VK_DEAD_OGONEK
The virtual key VK_DEAD_OGONEK.
VK_DEAD_TILDE
public static final int VK_DEAD_TILDE
The virtual key VK_DEAD_TILDE.
VK_DEAD_VOICED_SOUND
public static final int VK_DEAD_VOICED_SOUND
The virtual key VK_DEAD_VOICED_SOUND.
VK_DECIMAL
public static final int VK_DECIMAL
The virtual key VK_DECIMAL.
VK_DELETE
public static final int VK_DELETE
The virtual key VK_DELETE.
VK_DIVIDE
public static final int VK_DIVIDE
The virtual key VK_DIVIDE.
VK_DOLLAR
public static final int VK_DOLLAR
The virtual key VK_DOLLAR.
VK_DOWN
public static final int VK_DOWN
The virtual key for the non-numpad VK_DOWN.
VK_E
public static final int VK_E
The virtual key VK_E.
VK_END
public static final int VK_END
The virtual key VK_END.
VK_ENTER
public static final int VK_ENTER
The virtual key Enter, which will always map to '\n'.
VK_EQUALS
public static final int VK_EQUALS
The virtual key VK_EQUALS.
VK_ESCAPE
public static final int VK_ESCAPE
The virtual key VK_ESCAPE.
VK_EURO_SIGN
public static final int VK_EURO_SIGN
The virtual key VK_EURO_SIGN.
VK_EXCLAMATION_MARK
public static final int VK_EXCLAMATION_MARK
The virtual key VK_EXCLAMATION_MARK.
VK_F
public static final int VK_F
The virtual key VK_F.
VK_F1
public static final int VK_F1
The virtual key VK_F1.
VK_F10
public static final int VK_F10
The virtual key VK_F10.
VK_F11
public static final int VK_F11
The virtual key VK_F11.
VK_F12
public static final int VK_F12
The virtual key VK_F12.
VK_F13
public static final int VK_F13
The virtual key VK_F13.
VK_F14
public static final int VK_F14
The virtual key VK_F14.
VK_F15
public static final int VK_F15
The virtual key VK_F15.
VK_F16
public static final int VK_F16
The virtual key VK_F16.
VK_F17
public static final int VK_F17
The virtual key VK_F17.
VK_F18
public static final int VK_F18
The virtual key VK_F18.
VK_F19
public static final int VK_F19
The virtual key VK_F19.
VK_F2
public static final int VK_F2
The virtual key VK_F2.
VK_F20
public static final int VK_F20
The virtual key VK_F20.
VK_F21
public static final int VK_F21
The virtual key VK_F21.
VK_F22
public static final int VK_F22
The virtual key VK_F22.
VK_F23
public static final int VK_F23
The virtual key VK_F23.
VK_F24
public static final int VK_F24
The virtual key VK_F24.
VK_F3
public static final int VK_F3
The virtual key VK_F3.
VK_F4
public static final int VK_F4
The virtual key VK_F4.
VK_F5
public static final int VK_F5
The virtual key VK_F5.
VK_F6
public static final int VK_F6
The virtual key VK_F6.
VK_F7
public static final int VK_F7
The virtual key VK_F7.
VK_F8
public static final int VK_F8
The virtual key VK_F8.
VK_F9
public static final int VK_F9
The virtual key VK_F9.
VK_FINAL
public static final int VK_FINAL
The virtual key VK_FINAL.
VK_FIND
public static final int VK_FIND
The virtual key VK_FIND.
VK_FULL_WIDTH
public static final int VK_FULL_WIDTH
The virtual key VK_FULL_WIDTH.
VK_G
public static final int VK_G
The virtual key VK_G.
VK_GREATER
public static final int VK_GREATER
The virtual key VK_GREATER.
VK_H
public static final int VK_H
The virtual key VK_H.
VK_HALF_WIDTH
public static final int VK_HALF_WIDTH
The virtual key VK_HALF_WIDTH.
VK_HELP
public static final int VK_HELP
The virtual key VK_HELP.
VK_HIRAGANA
public static final int VK_HIRAGANA
The virtual key VK_HIRAGANA.
VK_HOME
public static final int VK_HOME
The virtual key VK_HOME.
VK_I
public static final int VK_I
The virtual key VK_I.
VK_INSERT
public static final int VK_INSERT
The virtual key VK_INSERT.
VK_J
public static final int VK_J
The virtual key VK_J.
VK_JAPANESE_HIRAGANA
public static final int VK_JAPANESE_HIRAGANA
The virtual key VK_JAPANESE_HIRAGANA.
VK_JAPANESE_KATAKANA
public static final int VK_JAPANESE_KATAKANA
The virtual key VK_JAPANESE_KATAKANA.
VK_JAPANESE_ROMAN
public static final int VK_JAPANESE_ROMAN
The virtual key VK_JAPANESE_ROMAN.
VK_K
public static final int VK_K
The virtual key VK_K.
VK_KANA
public static final int VK_KANA
The virtual key VK_KANA.
VK_KANA_LOCK
public static final int VK_KANA_LOCK
The virtual key VK_KANA_LOCK.
VK_KANJI
public static final int VK_KANJI
The virtual key VK_KANJI.
VK_KATAKANA
public static final int VK_KATAKANA
The virtual key VK_KATAKANA.
VK_KP_DOWN
public static final int VK_KP_DOWN
The virtual key for the numpad VK_KP_DOWN.
VK_KP_LEFT
public static final int VK_KP_LEFT
The virtual key for the numpad VK_KP_LEFT.
VK_KP_RIGHT
public static final int VK_KP_RIGHT
The virtual key for the numpad VK_KP_RIGHT.
VK_KP_UP
public static final int VK_KP_UP
The virtual key for the numpad VK_KP_UP.
VK_L
public static final int VK_L
The virtual key VK_L.
VK_LEFT
public static final int VK_LEFT
The virtual key for the non-numpad VK_LEFT.
VK_LEFT_PARENTHESIS
public static final int VK_LEFT_PARENTHESIS
The virtual key VK_LEFT_PARENTHESIS.
VK_LESS
public static final int VK_LESS
The virtual key VK_LESS.
VK_M
public static final int VK_M
The virtual key VK_M.
VK_META
public static final int VK_META
The virtual key VK_META.
VK_MINUS
public static final int VK_MINUS
The virtual key VK_MINUS.
VK_MODECHANGE
public static final int VK_MODECHANGE
The virtual key VK_MODECHANGE.
VK_MULTIPLY
public static final int VK_MULTIPLY
The virtual key VK_MULTIPLY.
VK_N
public static final int VK_N
The virtual key VK_N.
VK_NONCONVERT
public static final int VK_NONCONVERT
The virtual key VK_NONCONVERT.
VK_NUMBER_SIGN
public static final int VK_NUMBER_SIGN
The virtual key VK_NUMBER_SIGN.
VK_NUMPAD0
public static final int VK_NUMPAD0
The virtual key VK_NUMPAD0.
VK_NUMPAD1
public static final int VK_NUMPAD1
The virtual key VK_NUMPAD1.
VK_NUMPAD2
public static final int VK_NUMPAD2
The virtual key VK_NUMPAD2.
VK_NUMPAD3
public static final int VK_NUMPAD3
The virtual key VK_NUMPAD3.
VK_NUMPAD4
public static final int VK_NUMPAD4
The virtual key VK_NUMPAD4.
VK_NUMPAD5
public static final int VK_NUMPAD5
The virtual key VK_NUMPAD5.
VK_NUMPAD6
public static final int VK_NUMPAD6
The virtual key VK_NUMPAD6.
VK_NUMPAD7
public static final int VK_NUMPAD7
The virtual key VK_NUMPAD7.
VK_NUMPAD8
public static final int VK_NUMPAD8
The virtual key VK_NUMPAD8.
VK_NUMPAD9
public static final int VK_NUMPAD9
The virtual key VK_NUMPAD9.
VK_NUM_LOCK
public static final int VK_NUM_LOCK
The virtual key VK_NUM_LOCK.
VK_O
public static final int VK_O
The virtual key VK_O.
VK_OPEN_BRACKET
public static final int VK_OPEN_BRACKET
The virtual key VK_OPEN_BRACKET.
VK_P
public static final int VK_P
The virtual key VK_P.
VK_PAGE_DOWN
public static final int VK_PAGE_DOWN
The virtual key VK_PAGE_DOWN.
VK_PAGE_UP
public static final int VK_PAGE_UP
The virtual key VK_PAGE_UP.
VK_PASTE
public static final int VK_PASTE
The virtual key VK_PASTE.
VK_PAUSE
public static final int VK_PAUSE
The virtual key VK_PAUSE.
VK_PERIOD
public static final int VK_PERIOD
The virtual key VK_PERIOD.
VK_PLUS
public static final int VK_PLUS
The virtual key VK_PLUS.
VK_PREVIOUS_CANDIDATE
public static final int VK_PREVIOUS_CANDIDATE
The virtual key VK_PREVIOUS_CANDIDATE.
VK_PRINTSCREEN
public static final int VK_PRINTSCREEN
The virtual key VK_PRINTSCREEN.
VK_PROPS
public static final int VK_PROPS
The virtual key VK_PROPS.
VK_Q
public static final int VK_Q
The virtual key VK_Q.
VK_QUOTE
public static final int VK_QUOTE
The virtual key VK_QUOTE.
VK_QUOTEDBL
public static final int VK_QUOTEDBL
The virtual key VK_QUOTEDBL.
VK_R
public static final int VK_R
The virtual key VK_R.
VK_RIGHT
public static final int VK_RIGHT
The virtual key for the non-numpad VK_RIGHT.
VK_RIGHT_PARENTHESIS
public static final int VK_RIGHT_PARENTHESIS
The virtual key VK_RIGHT_PARENTHESIS.
VK_ROMAN_CHARACTERS
public static final int VK_ROMAN_CHARACTERS
The virtual key VK_ROMAN_CHARACTERS.
VK_S
public static final int VK_S
The virtual key VK_S.
VK_SCROLL_LOCK
public static final int VK_SCROLL_LOCK
The virtual key VK_SCROLL_LOCK.
VK_SEMICOLON
public static final int VK_SEMICOLON
The virtual key VK_SEMICOLON.
VK_SEPARATER
public static final int VK_SEPARATER
use VK_SEPARATOR
The virtual key VK_SEPARATOR, handily mispelled for those who can't
figure it out.
VK_SEPARATOR
public static final int VK_SEPARATOR
The virtual key VK_SEPARATOR.
VK_SHIFT
public static final int VK_SHIFT
The virtual key VK_SHIFT.
VK_SLASH
public static final int VK_SLASH
The virtual key VK_SLASH.
VK_SPACE
public static final int VK_SPACE
The virtual key VK_SPACE.
VK_STOP
public static final int VK_STOP
The virtual key VK_STOP.
VK_SUBTRACT
public static final int VK_SUBTRACT
The virtual key VK_SUBTRACT.
VK_T
public static final int VK_T
The virtual key VK_T.
VK_TAB
public static final int VK_TAB
The virtual key Tab, which will always map to '\t'.
VK_U
public static final int VK_U
The virtual key VK_U.
VK_UNDEFINED
public static final int VK_UNDEFINED
The virtual key VK_UNDEFINED. This is used for key typed events, which
do not have a virtual key.
VK_UNDERSCORE
public static final int VK_UNDERSCORE
The virtual key VK_UNDERSCORE.
VK_UNDO
public static final int VK_UNDO
The virtual key VK_UNDO.
VK_UP
public static final int VK_UP
The virtual key for the non-numpad VK_UP.
VK_V
public static final int VK_V
The virtual key VK_V.
VK_W
public static final int VK_W
The virtual key VK_W.
VK_WINDOWS
public static final int VK_WINDOWS
The 'Windows' key VK_WINDOWS
VK_X
public static final int VK_X
The virtual key VK_X.
VK_Y
public static final int VK_Y
The virtual key VK_Y.
VK_Z
public static final int VK_Z
The virtual key VK_Z.
KeyEvent.java -- event for key presses
Copyright (C) 1999, 2002, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.