Enum Class Key

java.lang.Object
java.lang.Enum<Key>
eu.webtoolkit.jwt.Key
All Implemented Interfaces:
Serializable, Comparable<Key>, Constable

public enum Key extends Enum<Key>
Enumeration for key codes.

These are key codes that identify a key on a keyboard. All keys listed here can be identified across all browsers and (Western) keyboards. A Key is returned by WKeyEvent.getKey(). If you want to identify a character, you should use the WKeyEvent.getCharCode() method instead.

See Also:
  • Enum Constant Details

    • Unknown

      public static final Key Unknown
      Unknown key.
    • Enter

      public static final Key Enter
      Enter key.
    • Tab

      public static final Key Tab
      Tab key.
    • Backspace

      public static final Key Backspace
      Backspace key.
    • Clear

      public static final Key Clear
      Clear key.
    • Shift

      public static final Key Shift
      Shift key.
    • Control

      public static final Key Control
      Control key.
    • Alt

      public static final Key Alt
      Alt key.
    • Pause

      public static final Key Pause
      Pause key.
    • Escape

      public static final Key Escape
      Escape key.
    • PageUp

      public static final Key PageUp
      Page up key.
    • PageDown

      public static final Key PageDown
      Page down key.
    • End

      public static final Key End
      End key.
    • Home

      public static final Key Home
      Home key.
    • Left

      public static final Key Left
      Left arrow key.
    • Up

      public static final Key Up
      Up arrow key.
    • Down

      public static final Key Down
      Down arrow key.
    • Insert

      public static final Key Insert
      Insert key.
    • Delete

      public static final Key Delete
      Delete key.
    • Meta

      public static final Key Meta
      Meta / Windows key.
    • ContextMenu

      public static final Key ContextMenu
      Context menu / Apps key.
    • Numpad0

      public static final Key Numpad0
      '0' num pad key.
    • Numpad1

      public static final Key Numpad1
      '1' num pad key.
    • Numpad2

      public static final Key Numpad2
      '2' num pad key.
    • Numpad3

      public static final Key Numpad3
      '3' num pad key.
    • Numpad4

      public static final Key Numpad4
      '4' num pad key.
    • Numpad5

      public static final Key Numpad5
      '5' num pad key.
    • Numpad6

      public static final Key Numpad6
      '6' num pad key.
    • Numpad7

      public static final Key Numpad7
      '7' num pad key.
    • Numpad8

      public static final Key Numpad8
      '8' num pad key.
    • Numpad9

      public static final Key Numpad9
      '9' num pad key.
    • NumMultiply

      public static final Key NumMultiply
      '*' num pad key.
    • NumAdd

      public static final Key NumAdd
      '+' num pad key.
    • NumSeparator

      public static final Key NumSeparator
      ',' num pad key.
    • NumSubtract

      public static final Key NumSubtract
      '-' num pad key.
    • NumDecimal

      public static final Key NumDecimal
      '.' num pad key.
    • NumDivide

      public static final Key NumDivide
      '/' num pad key.
    • F1

      public static final Key F1
      F1 function key.
    • F2

      public static final Key F2
      F2 function key.
    • F3

      public static final Key F3
      F3 function key.
    • F4

      public static final Key F4
      F4 function key.
    • F5

      public static final Key F5
      F5 function key.
    • F6

      public static final Key F6
      F6 function key.
    • F7

      public static final Key F7
      F7 function key.
    • F8

      public static final Key F8
      F8 function key.
    • F9

      public static final Key F9
      F9 function key.
    • F10

      public static final Key F10
      F10 function key.
    • F11

      public static final Key F11
      F11 function key.
    • F12

      public static final Key F12
      F12 function key.
    • OemSemicolon

      public static final Key OemSemicolon
      Configuration-dependent key.
    • OemPlus

      public static final Key OemPlus
      Configuration-dependent key.
    • OemComma

      public static final Key OemComma
      Configuration-dependent key.
    • OemMinus

      public static final Key OemMinus
      Configuration-dependent key.
    • OemPeriod

      public static final Key OemPeriod
      Configuration-dependent key.
    • OemQuestion

      public static final Key OemQuestion
      Configuration-dependent key.
    • OemTilde

      public static final Key OemTilde
      Configuration-dependent key.

      Note: Cannot be distinguished from OemCloseBrackets in Firefox!

    • OemOpenBrackets

      public static final Key OemOpenBrackets
      Configuration-dependent key.
    • OemPipe

      public static final Key OemPipe
      Configuration-dependent key.
    • OemCloseBrackets

      public static final Key OemCloseBrackets
      Configuration-dependent key.

      Note: Cannot be distinguished from OemTilde in Firefox!

    • OemQuotes

      public static final Key OemQuotes
      Configuration-dependent key.
    • OemBackslash

      public static final Key OemBackslash
      Configuration-dependent key.
    • Space

      public static final Key Space
      Space.
    • A

      public static final Key A
      'A' key
    • B

      public static final Key B
      'B' key
    • C

      public static final Key C
      'C' key
    • D

      public static final Key D
      'D' key
    • E

      public static final Key E
      'E' key
    • F

      public static final Key F
      'F' key
    • G

      public static final Key G
      'G' key
    • H

      public static final Key H
      'H' key
    • I

      public static final Key I
      'I' key
    • J

      public static final Key J
      'J' key
    • K

      public static final Key K
      'K' key
    • L

      public static final Key L
      'L' key
    • M

      public static final Key M
      'M' key
    • N

      public static final Key N
      'N' key
    • O

      public static final Key O
      'O' key
    • P

      public static final Key P
      'P' key
    • Q

      public static final Key Q
      'Q' key
    • R

      public static final Key R
      'R' key
    • S

      public static final Key S
      'S' key
    • T

      public static final Key T
      'T' key
    • U

      public static final Key U
      'U' key
    • V

      public static final Key V
      'V' key
    • W

      public static final Key W
      'W' key
    • X

      public static final Key X
      'X' key
    • Y

      public static final Key Y
      'Y' key
    • Z

      public static final Key Z
      'Z' key
    • Key_1

      public static final Key Key_1
      '1' key
    • Key_2

      public static final Key Key_2
      '2' key
    • Key_3

      public static final Key Key_3
      '3' key
    • Key_4

      public static final Key Key_4
      '4' key
    • Key_5

      public static final Key Key_5
      '5' key
    • Key_6

      public static final Key Key_6
      '6' key
    • Key_7

      public static final Key Key_7
      '7' key
    • Key_8

      public static final Key Key_8
      '8' key
    • Key_9

      public static final Key Key_9
      '9' key
    • Key_0

      public static final Key Key_0
      '0' key
  • Method Details

    • values

      public static Key[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Key valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.