Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public enum Key.Type

  1. Object
  2. Enum<Key.Type>
  3. Key.Type

ImplementsComparable<Key.Type>

What was pressed.

Enum constants

CHARA printable character; see Key.codePoint.
ENTEREnter or Return.
TABTab.
BACKTABShift-Tab.
BACKSPACEBackspace.
DELETEDelete.
INSERTInsert.
ESCAPEEscape on its own.
UPUp arrow.
DOWNDown arrow.
LEFTLeft arrow.
RIGHTRight arrow.
HOMEHome.
ENDEnd.
PAGE_UPPage Up.
PAGE_DOWNPage Down.
FUNCTIONA function key; see Key.number.
CTRLControl and a letter other than the ones named here; see Key.codePoint for the letter.
CTRL_CCtrl-C.
CTRL_DCtrl-D.
EOFThe end of standard input.
UNKNOWNAn escape sequence this decoder does not know.

Methods

public static Key.Type[] values()
public static Key.Type valueOf(String name)

Inherited methods

Enum constant details

CHAR

CHAR
A printable character; see Key.codePoint.

ENTER

ENTER
Enter or Return.

TAB

TAB
Tab.

BACKTAB

BACKTAB
Shift-Tab.

BACKSPACE

BACKSPACE
Backspace.

DELETE

DELETE
Delete.

INSERT

INSERT
Insert.

ESCAPE

ESCAPE
Escape on its own.

UP

UP
Up arrow.

DOWN

DOWN
Down arrow.

LEFT

LEFT
Left arrow.

HOME

HOME
Home.

END

END
End.

PAGE_UP

PAGE_UP
Page Up.

PAGE_DOWN

PAGE_DOWN
Page Down.

FUNCTION

FUNCTION
A function key; see Key.number.

CTRL

CTRL
Control and a letter other than the ones named here; see Key.codePoint for the letter.

CTRL_C

CTRL_C
Ctrl-C.

CTRL_D

CTRL_D
Ctrl-D.

EOF

EOF
The end of standard input.

UNKNOWN

UNKNOWN
An escape sequence this decoder does not know.

Method details

values

public static Key.Type[] values()

valueOf

public static Key.Type valueOf(String name)