Package totalcross.sys
Interface SpecialKeys
-
public interface SpecialKeysSpecialKeys is an interface containing values for special keys and modifiers.Below is an example of SpecialKeys being used.
public void onEvent(Event event) { if (event.type == KeyEvent.SPECIAL_KEY_PRESS) { KeyEvent ke = (KeyEvent)event; if ((ke.modifiers & SpecialKeys.CONTROL) != 0) ... control key was held down if (ke.key == SpecialKeys.PAGE_DOWN) ... page down key pressed if (ke.key == SpecialKeys.PAGE_UP) ... page up key pressed
-
-
Field Summary
Fields Modifier and Type Field Description static intACTIONValid only on WindowsCE.static intALTmodifier for alt keystatic intBACKSPACEspecial key.static intCALCCALC button under PalmOS, NOTES button under WindowsCEstatic intCLOCKValid only on PalmOSstatic intCOMMANDspecial keystatic intCONTRASTValid only on PalmOSstatic intCONTROLmodifier for control keystatic intDELETEspecial keystatic intDOWNspecial keystatic intENDspecial key.static intENTERspecial key.static intESCAPEspecial keystatic intF1Used on some Windows CE devices.static intF10Used on some Windows CE devices.static intF11Used on some Windows CE devices.static intF12Used on some Windows CE devices.static intF13Used on some Windows CE devices.static intF14Used on some Windows CE devices.static intF15Used on some Windows CE devices.static intF16Used on some Windows CE devices.static intF17Used on some Windows CE devices.static intF18Used on some Windows CE devices.static intF19Used on some Windows CE devices.static intF2Used on some Windows CE devices.static intF20Used on some Windows CE devices.static intF3Used on some Windows CE devices.static intF4Used on some Windows CE devices.static intF5Used on some Windows CE devices.static intF6Used on some Windows CE devices.static intF7Used on some Windows CE devices.static intF8Used on some Windows CE devices.static intF9Used on some Windows CE devices.static intFINDValid only on PalmOSstatic intHARD1Also used in Smartphonesstatic intHARD2Also used in Smartphonesstatic intHARD3special keystatic intHARD4special keystatic intHOMEspecial keystatic intINSERTspecial keystatic intKEYBOARDspecial keystatic intKEYBOARD_123Pressed 123 in Palm OS or case convertion in Smartphonesstatic intKEYBOARD_ABCPressed abc in Palm OS, and the ALT key in Treo 600.static intLAUNCHValid only on PalmOSstatic intLEFTspecial keystatic intMENUspecial keystatic intPAGE_DOWNspecial keystatic intPAGE_UPspecial keystatic intPOWER_ONThe device was turned off and now on while the application was running.static intRIGHTspecial keystatic intSCREEN_CHANGEScreen change: can be a rotation or a collapse/expand.static intSHIFTmodifier for shift keystatic intSYNCValid only on PalmOS.static intSYSTEMmodifier used in Android that states the key came from a trusted part of the system (ie, physical keyboard)static intTABspecial keystatic intUPspecial key
-
-
-
Field Detail
-
ALT
static final int ALT
modifier for alt key- See Also:
- Constant Field Values
-
CONTROL
static final int CONTROL
modifier for control key- See Also:
- Constant Field Values
-
SHIFT
static final int SHIFT
modifier for shift key- See Also:
- Constant Field Values
-
SYSTEM
static final int SYSTEM
modifier used in Android that states the key came from a trusted part of the system (ie, physical keyboard)- See Also:
- Constant Field Values
-
PAGE_UP
static final int PAGE_UP
special key- See Also:
- Constant Field Values
-
PAGE_DOWN
static final int PAGE_DOWN
special key- See Also:
- Constant Field Values
-
HOME
static final int HOME
special key- See Also:
- Constant Field Values
-
END
static final int END
special key. Used in Smartphones- See Also:
- Constant Field Values
-
UP
static final int UP
special key- See Also:
- Constant Field Values
-
DOWN
static final int DOWN
special key- See Also:
- Constant Field Values
-
LEFT
static final int LEFT
special key- See Also:
- Constant Field Values
-
RIGHT
static final int RIGHT
special key- See Also:
- Constant Field Values
-
INSERT
static final int INSERT
special key- See Also:
- Constant Field Values
-
ENTER
static final int ENTER
special key. On Windows, the enter key maps to ACTION- See Also:
ACTION, Constant Field Values
-
TAB
static final int TAB
special key- See Also:
- Constant Field Values
-
BACKSPACE
static final int BACKSPACE
special key. Used in Smartphones- See Also:
- Constant Field Values
-
ESCAPE
static final int ESCAPE
special key- See Also:
- Constant Field Values
-
DELETE
static final int DELETE
special key- See Also:
- Constant Field Values
-
MENU
static final int MENU
special key- See Also:
- Constant Field Values
-
COMMAND
static final int COMMAND
special key- See Also:
- Constant Field Values
-
KEYBOARD_ABC
static final int KEYBOARD_ABC
Pressed abc in Palm OS, and the ALT key in Treo 600.- See Also:
- Constant Field Values
-
KEYBOARD_123
static final int KEYBOARD_123
Pressed 123 in Palm OS or case convertion in Smartphones- See Also:
- Constant Field Values
-
KEYBOARD
static final int KEYBOARD
special key- See Also:
- Constant Field Values
-
HARD1
static final int HARD1
Also used in Smartphones- See Also:
- Constant Field Values
-
HARD2
static final int HARD2
Also used in Smartphones- See Also:
- Constant Field Values
-
HARD3
static final int HARD3
special key- See Also:
- Constant Field Values
-
HARD4
static final int HARD4
special key- See Also:
- Constant Field Values
-
CALC
static final int CALC
CALC button under PalmOS, NOTES button under WindowsCE- See Also:
- Constant Field Values
-
FIND
static final int FIND
Valid only on PalmOS- See Also:
- Constant Field Values
-
LAUNCH
static final int LAUNCH
Valid only on PalmOS- See Also:
- Constant Field Values
-
ACTION
static final int ACTION
Valid only on WindowsCE. If not registered by the user, it is replaced by MENU.- See Also:
- Constant Field Values
-
CONTRAST
static final int CONTRAST
Valid only on PalmOS- See Also:
- Constant Field Values
-
CLOCK
static final int CLOCK
Valid only on PalmOS- See Also:
- Constant Field Values
-
SYNC
static final int SYNC
Valid only on PalmOS. Equivalent to the HotSync button.- See Also:
- Constant Field Values
-
SCREEN_CHANGE
static final int SCREEN_CHANGE
Screen change: can be a rotation or a collapse/expand. Settings.screenWidth/Height are already changed when this key event is posted.- See Also:
- Constant Field Values
-
POWER_ON
static final int POWER_ON
The device was turned off and now on while the application was running. This is not a hardware key and cannot be intercepted; all you can do is handle the SPECIAL_KEY_PRESS event and check if this key was typed. Currently supported on Windows CE and Palm OS devices.- See Also:
- Constant Field Values
-
F1
static final int F1
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F2
static final int F2
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F3
static final int F3
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F4
static final int F4
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F5
static final int F5
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F6
static final int F6
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F7
static final int F7
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F8
static final int F8
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F9
static final int F9
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F10
static final int F10
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F11
static final int F11
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F12
static final int F12
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F13
static final int F13
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F14
static final int F14
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F15
static final int F15
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F16
static final int F16
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F17
static final int F17
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F18
static final int F18
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F19
static final int F19
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
F20
static final int F20
Used on some Windows CE devices. Not used at Win32 or JavaSE.- See Also:
- Constant Field Values
-
-