public class

KeyCodes

extends Object
java.lang.Object
   ↳ com.google.gwt.event.dom.client.KeyCodes

Class Overview

Contains the native key codes previously defined in KeyboardListener. When converting keyboard listener instances, developers can use the following static import to access these constants:

 import static com.google.gwt.event.dom.client.KeyCodes.*; 
These constants are defined with an int data type in order to be compatible with the constants defined in KeyboardListener.

Summary

Constants
int KEY_ALT Alt key code.
int KEY_BACKSPACE Backspace key code.
int KEY_CTRL Control key code.
int KEY_DELETE Delete key code.
int KEY_DOWN Down arrow code.
int KEY_END End key code.
int KEY_ENTER Enter key code.
int KEY_ESCAPE Escape key code.
int KEY_HOME Home key code.
int KEY_LEFT Left key code.
int KEY_PAGEDOWN Page down key code.
int KEY_PAGEUP Page up key code.
int KEY_RIGHT Right arrow key code.
int KEY_SHIFT Shift key code.
int KEY_TAB Tab key code.
int KEY_UP Up Arrow key code.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int KEY_ALT

Alt key code.

Constant Value: 18 (0x00000012)

public static final int KEY_BACKSPACE

Backspace key code.

Constant Value: 8 (0x00000008)

public static final int KEY_CTRL

Control key code.

Constant Value: 17 (0x00000011)

public static final int KEY_DELETE

Delete key code.

Constant Value: 46 (0x0000002e)

public static final int KEY_DOWN

Down arrow code.

Constant Value: 40 (0x00000028)

public static final int KEY_END

End key code.

Constant Value: 35 (0x00000023)

public static final int KEY_ENTER

Enter key code.

Constant Value: 13 (0x0000000d)

public static final int KEY_ESCAPE

Escape key code.

Constant Value: 27 (0x0000001b)

public static final int KEY_HOME

Home key code.

Constant Value: 36 (0x00000024)

public static final int KEY_LEFT

Left key code.

Constant Value: 37 (0x00000025)

public static final int KEY_PAGEDOWN

Page down key code.

Constant Value: 34 (0x00000022)

public static final int KEY_PAGEUP

Page up key code.

Constant Value: 33 (0x00000021)

public static final int KEY_RIGHT

Right arrow key code.

Constant Value: 39 (0x00000027)

public static final int KEY_SHIFT

Shift key code.

Constant Value: 16 (0x00000010)

public static final int KEY_TAB

Tab key code.

Constant Value: 9 (0x00000009)

public static final int KEY_UP

Up Arrow key code.

Constant Value: 38 (0x00000026)