Available Methods
- getKeyCode ( )
- consume ( )
- VK_RIGHT
- VK_UP
- getID ( )
- getKeyChar ( )
- VK_DOWN
- KEY_PRESSED
- VK_ENTER
- VK_LEFT
- KEY_RELEASED
- KEY_TYPED
- VK_UNDEFINED
- VK_ESCAPE
- VK_SPACE
- VK_ALT
- getWhen ( )
- CHAR_UNDEFINED
- VK_A
- VK_BACK_SPACE
- VK_S
- getModifiers ( )
- isControlDown ( )
- VK_CONTROL
- isConsumed ( )
- VK_SHIFT
- VK_DELETE
- VK_W
- VK_SCROLL_LOCK
- getKeyText ( )
- getSource ( )
- VK_TAB
- VK_F10 ( )
- isShiftDown ( )
- VK_CAPS_LOCK
- getKeyModifiersText ( )
- VK_NUM_LOCK
- VK_D
- VK_HOME
- getComponent ( )
- isAltDown ( )
- VK_C
- VK_KANA_LOCK
- VK_R
- VK_META
- VK_MINUS
- CTRL_MASK
- VK_PAGE_UP
- VK_F1 ( )
- VK_B
- VK_PAGE_DOWN
- VK_V
- VK_F12 ( )
- VK_L
- VK_PLUS
- VK_Z
- VK_F2 ( )
- VK_9 ( )
- VK_I
- VK_END
- VK_N
- VK_P
- isActionKey ( )
- VK_8 ( )
- VK_SLASH
- VK_SEMICOLON
- getModifiersEx ( )
- VK_U
- VK_EQUALS
- VK_J
- VK_CONTEXT_MENU
- VK_0 ( )
- VK_F8 ( )
- VK_M
- VK_F7 ( )
- VK_X
- VK_O
- VK_ADD
- VK_H
- VK_5 ( )
- VK_F5 ( )
- VK_F4 ( )
- VK_7 ( )
- VK_K
- VK_UNDERSCORE
- VK_ALT_GRAPH
- VK_F11 ( )
- VK_COMMA
- VK_KP_LEFT
- ALT_MASK
- VK_BACK_SLASH
- VK_DEAD_ACUTE
- VK_DIVIDE
- VK_Q
- VK_E
- VK_3 ( )
- VK_CLOSE_BRACKET
- getExtendedKeyCodeForChar ( )
- VK_WINDOWS
- VK_6 ( )
- VK_PERIOD
- VK_NUMPAD0 ( )
- VK_NUMPAD1 ( )
- VK_INSERT
- isMetaDown ( )
- VK_F3 ( )
- VK_KP_RIGHT
- VK_F6 ( )
- setSource ( )
- VK_NUMPAD4 ( )
- VK_NUMPAD7 ( )
- VK_NUMPAD2 ( )
- SHIFT_MASK
- CTRL_DOWN_MASK
- VK_NUMPAD5 ( )
- VK_NUMPAD9 ( )
- VK_Y
- VK_T
- VK_2 ( )
- ALT_DOWN_MASK
- VK_F9 ( )
- VK_BACK_QUOTE
- VK_F
- VK_KP_UP
- VK_HELP
- VK_KP_DOWN
- VK_1 ( )
- VK_MULTIPLY
- META_MASK
- VK_G
- VK_SUBTRACT
- VK_F13 ( )
- getKeyLocation ( )
- VK_DECIMAL
- VK_COLON
- VK_4 ( )
- VK_PAUSE
- VK_OPEN_BRACKET
- VK_CIRCUMFLEX
- VK_QUOTE
- VK_NUMPAD6 ( )
- VK_CANCEL
- VK_NUMPAD3 ( )
- VK_PRINTSCREEN
- KEY_LOCATION_STANDARD
- VK_GREATER
- VK_DEAD_GRAVE
- VK_ROMAN_CHARACTERS
- VK_DEAD_BREVE
- VK_NUMPAD8 ( )
- VK_F14 ( )
- VK_AT
- VK_CONVERT
- VK_LEFT_PARENTHESIS
- VK_F16 ( )
- VK_F15 ( )
- VK_HALF_WIDTH
- VK_RIGHT_PARENTHESIS
- KEY_LOCATION_NUMPAD
- VK_STOP
- VK_DEAD_VOICED_SOUND
- VK_F21 ( )
- VK_INPUT_METHOD_ON_OFF
- VK_PASTE
- VK_KANJI
- isAltGraphDown ( )
- setKeyChar ( )
- SHIFT_DOWN_MASK
- VK_JAPANESE_HIRAGANA
- VK_DEAD_CEDILLA
- VK_NONCONVERT
- VK_KANA
- KEY_LOCATION_LEFT
- VK_DEAD_DOUBLEACUTE
- VK_DEAD_CIRCUMFLEX
- VK_BRACELEFT
- VK_HIRAGANA
- VK_EXCLAMATION_MARK
Related Classes
- java.io.File
- java.awt.Color
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.swing.JPanel
- java.awt.Dimension
- javax.swing.JFrame
- java.awt.Font
- java.awt.event.MouseEvent
- javax.swing.JLabel
- javax.swing.JButton
- java.awt.BorderLayout
- javax.swing.JOptionPane
- java.awt.Component
- javax.swing.JScrollPane
- java.awt.event.WindowEvent
- java.awt.Toolkit
- javax.swing.JTextField
- javax.swing.SwingUtilities
- java.awt.event.MouseAdapter
- javax.swing.ImageIcon
- java.awt.Point
- javax.swing.JComponent
- java.awt.event.WindowAdapter
- javax.swing.JCheckBox
Java Code Examples for java.awt.event.KeyEvent#KEY_LOCATION_STANDARD
The following examples show how to use
java.awt.event.KeyEvent#KEY_LOCATION_STANDARD .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ActionCommand.java From consulo with Apache License 2.0 | 6 votes |
public static InputEvent getInputEvent(String actionName) { final Shortcut[] shortcuts = KeymapManager.getInstance().getActiveKeymap().getShortcuts(actionName); KeyStroke keyStroke = null; for (Shortcut each : shortcuts) { if (each instanceof KeyboardShortcut) { keyStroke = ((KeyboardShortcut)each).getFirstKeyStroke(); if (keyStroke != null) break; } } if (keyStroke != null) { return new KeyEvent(JOptionPane.getRootFrame(), KeyEvent.KEY_PRESSED, System.currentTimeMillis(), keyStroke.getModifiers(), keyStroke.getKeyCode(), keyStroke.getKeyChar(), KeyEvent.KEY_LOCATION_STANDARD); } else { return new MouseEvent(JOptionPane.getRootFrame(), MouseEvent.MOUSE_PRESSED, 0, 0, 0, 0, 1, false, MouseEvent.BUTTON1); } }
Example 2
Source File: PS2.java From OberonEmulator with ISC License | 5 votes |
public int[] encodeNative(int location, int keyCode, boolean press, boolean includeCharBased) { int value = vkMap[location][keyCode]; if (value == 0 && vkMap[KeyEvent.KEY_LOCATION_STANDARD][keyCode] != 0) System.out.println("Key " + keyCode + " exists as standard but not as " + location); VK_TYPE type = VK_TYPE.values()[value >> 8]; if (value == 0 || (type == VK_TYPE.CHAR_BASED && !includeCharBased)) return new int[0]; value = value & 0xFF; switch (type) { case CHAR_BASED: case NORMAL: if (press) return new int[] { value }; else return new int[] { 0xF0, value }; case EXTENDED: if (press) return new int[] { 0xE0, value }; else return new int[] { 0xE0, 0xF0, value }; case NUMLOCK_HACK: if (press) return new int[] { 0xE0, 0x12, 0xE0, value }; else return new int[] { 0xE0, 0xF0, value, 0xE0, 0xF0, 0x12 }; case SHIFT_HACK: if (press) return new int[] { 0xE0, 0xF0, 0x12, 0xE0, 0xF0, 0x59, 0xE0, value }; else return new int[] { 0xE0, 0xF0, value }; } return new int[0]; }