public class MSKeyEvent
extends java.lang.Object
isShiftKey(int)
isAltKey(int)
convertToJavaVK(int)
, which can convertMSLLKtoRKEventListener
Modifier and Type | Field and Description |
---|---|
static int |
VK_APPS |
static int |
VK_BACK |
static int |
VK_CANCEL |
static int |
VK_CAPITAL |
static int |
VK_CLEAR |
static int |
VK_CONTROL |
static int |
VK_DELETE |
static int |
VK_DOWN |
static int |
VK_END |
static int |
VK_ESCAPE |
static int |
VK_EXECUTE |
static int |
VK_HELP |
static int |
VK_HOME |
static int |
VK_INSERT |
static int |
VK_LCONTROL |
static int |
VK_LEFT |
static int |
VK_LMENU |
static int |
VK_LSHIFT |
static int |
VK_LWIN |
static int |
VK_MENU |
static int |
VK_NEXT |
static int |
VK_OEM_1 |
static int |
VK_OEM_2 |
static int |
VK_OEM_3 |
static int |
VK_OEM_4 |
static int |
VK_OEM_5 |
static int |
VK_OEM_6 |
static int |
VK_OEM_7 |
static int |
VK_OEM_8 |
static int |
VK_OEM_COMMA |
static int |
VK_OEM_MINUS |
static int |
VK_OEM_PERIOD |
static int |
VK_OEM_PLUS |
static int |
VK_PAUSE |
static int |
VK_PRINT |
static int |
VK_PRIOR |
static int |
VK_RCONTROL |
static int |
VK_RETURN |
static int |
VK_RIGHT |
static int |
VK_RMENU |
static int |
VK_RSHIFT |
static int |
VK_RWIN |
static int |
VK_SELECT |
static int |
VK_SHIFT |
static int |
VK_SNAPSHOT |
static int |
VK_SPACE |
static int |
VK_TAB |
static int |
VK_UP |
Constructor and Description |
---|
MSKeyEvent() |
Modifier and Type | Method and Description |
---|---|
static int |
convertToJavaVK(int MSVkcode)
Purpose: The windows virtual key code is NOT consistent with that of JAVA
This function is used to convert the different key code of windows to that of JAVA. Note: For those key codes of the same value between Windows and Java, they are not converted here. This function may be need to updated, if one day they are not the same. For those key codes has two java key codes to map (one is with Shift On, one without), we convert to the Java key code without Shift On. For example: Windows key code: VK_OEM_4, it represents the key '[{' of US keyboard Java has one key code VK_OPEN_BRACKET for '[' (without shift on), and one key code VK_BRACELEFT for '{' (with shift on) We will return VK_OPEN_BRACKET as result, the one without shift on |
static boolean |
isAltKey(int vkcode) |
static boolean |
isCapsLockKey(int vkcode) |
static boolean |
isControlKey(int vkcode) |
static boolean |
isEnter(int vkcode) |
static boolean |
isShiftKey(int vkcode) |
static boolean |
isWindowsKey(int vkcode) |
public static final int VK_LSHIFT
public static final int VK_RSHIFT
public static final int VK_LCONTROL
public static final int VK_RCONTROL
public static final int VK_LMENU
public static final int VK_RMENU
public static final int VK_RETURN
public static final int VK_CANCEL
public static final int VK_BACK
public static final int VK_TAB
public static final int VK_CLEAR
public static final int VK_SHIFT
public static final int VK_CONTROL
public static final int VK_MENU
public static final int VK_PAUSE
public static final int VK_CAPITAL
public static final int VK_ESCAPE
public static final int VK_SPACE
public static final int VK_PRIOR
public static final int VK_NEXT
public static final int VK_END
public static final int VK_HOME
public static final int VK_LEFT
public static final int VK_UP
public static final int VK_RIGHT
public static final int VK_DOWN
public static final int VK_SELECT
public static final int VK_PRINT
public static final int VK_EXECUTE
public static final int VK_SNAPSHOT
public static final int VK_INSERT
public static final int VK_DELETE
public static final int VK_HELP
public static final int VK_LWIN
public static final int VK_RWIN
public static final int VK_APPS
public static final int VK_OEM_1
public static final int VK_OEM_PLUS
public static final int VK_OEM_COMMA
public static final int VK_OEM_MINUS
public static final int VK_OEM_PERIOD
public static final int VK_OEM_2
public static final int VK_OEM_3
public static final int VK_OEM_4
public static final int VK_OEM_5
public static final int VK_OEM_6
public static final int VK_OEM_7
public static final int VK_OEM_8
public static boolean isShiftKey(int vkcode)
public static boolean isControlKey(int vkcode)
public static boolean isAltKey(int vkcode)
public static boolean isWindowsKey(int vkcode)
public static boolean isCapsLockKey(int vkcode)
public static boolean isEnter(int vkcode)
public static int convertToJavaVK(int MSVkcode)
MSVkcode
- The Virtual Key Code for Windows, see Copyright © SAS Institute. All Rights Reserved.