@FunctionalInterface public interface Key extends Serializable
See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
Modifier and Type | Field and Description |
---|---|
static Key |
ACCEPT
The
Accept , Commit , or OK key or
button. |
static Key |
ADD
The numeric keypad's addition key,
+ . |
static Key |
AGAIN
The
Again key. |
static Key |
ALL_CANDIDATES
The
All Candidates key, which starts multi-candidate mode,
in which multiple candidates are displayed for the ongoing input. |
static Key |
ALPHANUMERIC
The
Alphanumeric key. |
static Key |
ALT
The
Alt (Alternative) key. |
static Key |
ALT_GRAPH
The
AltGr or AltGraph (Alternate Graphics) key. |
static Key |
APP_SWITCH
Presents a list of recently-used applications which lets the user change
apps quickly.
|
static Key |
ARROW_DOWN
The down arrow key.
|
static Key |
ARROW_LEFT
The left arrow key.
|
static Key |
ARROW_RIGHT
The right arrow key.
|
static Key |
ARROW_UP
The up arrow key.
|
static Key |
ATTN
The
Attn (Attention) key. |
static Key |
AUDIO_BALANCE_LEFT
Adjusts audio balance toward the left.
|
static Key |
AUDIO_BALANCE_RIGHT
Adjusts audio balance toward the right.
|
static Key |
AUDIO_BASS_BOOST_DOWN
Reduces bass boosting or cycles downward through bass boost modes or
states.
|
static Key |
AUDIO_BASS_BOOST_TOGGLE
Toggles bass boosting on and off.
|
static Key |
AUDIO_BASS_BOOST_UP
Increases the amount of bass boosting, or cycles upward through a set of
bass boost modes or states.
|
static Key |
AUDIO_BASS_DOWN
Decreases the amount of bass.
|
static Key |
AUDIO_BASS_UP
Increases the amount of bass.
|
static Key |
AUDIO_FADER_FRONT
Adjusts the audio fader toward the front.
|
static Key |
AUDIO_FADER_REAR
Adjusts the audio fader toward the rear.
|
static Key |
AUDIO_SURROUND_MODE_NEXT
Selects the next available surround sound mode.
|
static Key |
AUDIO_TREBLE_DOWN
Decreases the amount of treble.
|
static Key |
AUDIO_TREBLE_UP
Increases the amount of treble.
|
static Key |
AUDIO_VOLUME_DOWN
Decreases the audio volume.
|
static Key |
AUDIO_VOLUME_MUTE
Mutes the audio.
|
static Key |
AUDIO_VOLUME_UP
Increases the audio volume.
|
static Key |
AVR_INPUT
Changes the input mode on an external audio/video receiver (AVR) unit.
|
static Key |
AVR_POWER
Toggles the power on an external AVR unit.
|
static Key |
BACKSPACE
The
Backspace key. |
static Key |
BRIGHTNESS_DOWN
The Brightness Down key.
|
static Key |
BRIGHTNESS_UP
The Brightness Up key.
|
static Key |
BROWSER_BACK
Navigates to the previous content or page in the current Web view's
history.
|
static Key |
BROWSER_FAVORITES
Opens the user's list of bookmarks/favorites.
|
static Key |
BROWSER_FORWARD
Navigates to the next content or page in the current Web view's history.
|
static Key |
BROWSER_HOME
Navigates to the user's preferred home page.
|
static Key |
BROWSER_REFRESH
Refreshes the current page or content.
|
static Key |
BROWSER_SEARCH
Activates the user's preferred search engine or the search interface
within their browser.
|
static Key |
BROWSER_STOP
Stops loading the currently displayed Web view or content.
|
static Key |
CALL
The
Call key; dials the number which has been entered. |
static Key |
CAMERA
The
Camera key; activates the camera. |
static Key |
CAMERA_FOCUS
The
Focus key; focuses the camera. |
static Key |
CANCEL
The
Cancel key. |
static Key |
CAPS_LOCK
The
Caps Lock key. |
static Key |
CHANNEL_DOWN
Switches to the previous channel.
|
static Key |
CHANNEL_UP
Switches to the next channel.
|
static Key |
CLEAR
The
Clear key. |
static Key |
CLOSE
Closes the current document or message.
|
static Key |
CLOSED_CAPTION_TOGGLE
Toggles closed captioning on and off.
|
static Key |
CODE_INPUT
The
Code Input key, which enables code input mode, which
lets the user enter characters by typing their code points (their Unicode
character numbers, typically). |
static Key |
COLOR_F0_RED
General-purpose media function key, color-coded red; this has index 0
among the colored keys.
|
static Key |
COLOR_F1_GREEN
General-purpose media function key, color-coded green; this has index 1
among the colored keys.
|
static Key |
COLOR_F2_YELLOW
General-purpose media function key, color-coded yellow; this has index 2
among the colored keys.
|
static Key |
COLOR_F3_BLUE
General-purpose media function key, color-coded blue; this has index 3
among the colored keys.
|
static Key |
COLOR_F4_GREY
General-purpose media function key, color-coded grey; this has index 4
among the colored keys.
|
static Key |
COLOR_F5_BROWN
General-purpose media function key, color-coded brown; this has index 5
among the colored keys.
|
static Key |
COMPOSE
The
Compose key. |
static Key |
CONTEXT_MENU
Shows the context menu.
|
static Key |
CONTROL
The
Control , Ctrl , or Ctl key. |
static Key |
CONVERT
The
Convert key, which instructs the IME to convert the
current input method sequence into the resulting character. |
static Key |
COPY
The
Copy key (on certain extended keyboards). |
static Key |
CR_SEL
The Cursor Select key,
CrSel . |
static Key |
CUT
The
Cut key (on certain extended keyboards). |
static Key |
DEAD
A dead "combining" key; that is, a key which is used in tandem with other
keys to generate accented and other modified characters.
|
static Key |
DECIMAL
The decimal point key (typically
. or , )
depending on the region. |
static Key |
DELETE
The Delete key,
Del . |
static Key |
DIMMER
Adjusts the brightness of the device by toggling between two brightness
levels or by cycling among multiple brightness levels.
|
static Key |
DISPLAY_SWAP
Cycles among video sources.
|
static Key |
DIVIDE
The numeric keypad's division key, /.
|
static Key |
DVR
Switches the input source to the Digital Video Recorder (DVR).
|
static Key |
EISU
The
Eisu key. |
static Key |
EJECT
The
Eject key. |
static Key |
END
The
End key. |
static Key |
END_CALL
The
End Call or Hang Up button. |
static Key |
ENTER
The
Enter or ? key (sometimes labeled
Return ). |
static Key |
ERASE_EOF
Erase to End of Field.
|
static Key |
ESCAPE
The
Esc (Escape) key. |
static Key |
EX_SEL
The
ExSel (Extend Selection) key. |
static Key |
EXECUTE
The
Execute key. |
static Key |
EXIT
The Exit button, which exits the current application or menu.
|
static Key |
F1
The first general-purpose function key,
F1 . |
static Key |
F10
The
F10 key. |
static Key |
F11
The
F11 key. |
static Key |
F12
The
F12 key. |
static Key |
F13
The
F13 key. |
static Key |
F14
The
F14 key. |
static Key |
F15
The
F15 key. |
static Key |
F16
The
F16 key. |
static Key |
F17
The
F17 key. |
static Key |
F18
The
F18 key. |
static Key |
F19
The
F19 key. |
static Key |
F2
The
F2 key. |
static Key |
F20
The
F20 key. |
static Key |
F3
The
F3 key. |
static Key |
F4
The
F4 key. |
static Key |
F5
The
F5 key. |
static Key |
F6
The
F6 key. |
static Key |
F7
The
F7 key. |
static Key |
F8
The
F8 key. |
static Key |
F9
The
F9 key. |
static Key |
FAVORITE_CLEAR0
Clears the program or content stored in the first favorites list slot.
|
static Key |
FAVORITE_CLEAR1
Clears the program or content stored in the second favorites list slot.
|
static Key |
FAVORITE_CLEAR2
Clears the program or content stored in the third favorites list slot.
|
static Key |
FAVORITE_CLEAR3
Clears the program or content stored in the fourth favorites list slot.
|
static Key |
FAVORITE_RECALL0
Selects (recalls) the program or content stored in the first favorites
list slot.
|
static Key |
FAVORITE_RECALL1
Selects (recalls) the program or content stored in the second favorites
list slot.
|
static Key |
FAVORITE_RECALL2
Selects (recalls) the program or content stored in the third favorites
list slot.
|
static Key |
FAVORITE_RECALL3
Selects (recalls) the program or content stored in the fourth favorites
list slot.
|
static Key |
FAVORITE_STORE0
Stores the current program or content into the first favorites list slot.
|
static Key |
FAVORITE_STORE1
Stores the current program or content into the second favorites list
slot.
|
static Key |
FAVORITE_STORE2
Stores the current program or content into the third favorites list slot.
|
static Key |
FAVORITE_STORE3
Stores the current program or content into the fourth favorites list
slot.
|
static Key |
FINAL_MODE
The
Final (Final Mode) key is used on some Asian keyboards
to enter final mode when using IMEs. |
static Key |
FIND
The
Find key. |
static Key |
FINISH
The
Finish key. |
static Key |
FN
The
Fn (Function modifier) key. |
static Key |
FN_LOCK
The
FnLock or F-Lock (Function Lock) key. |
static Key |
GO_BACK
The
Back button. |
static Key |
GO_HOME
The
Home button, which takes the user to the phone's main
screen (usually an application launcher). |
static Key |
GROUP_FIRST
Switches to the first character group on an
ISO/IEC 9995
keyboard.
|
static Key |
GROUP_LAST
Switches to the last character group on an
ISO/IEC 9995
keyboard.
|
static Key |
GROUP_NEXT
Switches to the next character group on an
ISO/IEC 9995
keyboard.
|
static Key |
GROUP_PREVIOUS
Switches to the previous character group on an
ISO/IEC 9995
keyboard.
|
static Key |
GUIDE
Toggles the display of the program or content guide.
|
static Key |
GUIDE_NEXT_DAY
If the guide is currently displayed, this button tells the guide to
display the next day's content.
|
static Key |
GUIDE_PREVIOUS_DAY
If the guide is currently displayed, this button tells the guide to
display the previous day's content.
|
static Key |
HANGUL_MODE
The
Hangul (Korean character set) mode key, which toggles
between Hangul and English entry modes. |
static Key |
HANJA_MODE
Selects the Hanja mode, for converting Hangul characters to the more
specific Hanja characters.
|
static Key |
HANKAKU
The
Hankaku (half-width characters) key. |
static Key |
HEADSET_HOOK
The
Headset Hook key. |
static Key |
HELP
The
Help key. |
static Key |
HIBERNATE
The
Hibernate key. |
static Key |
HIRAGANA
The
Hiragana key; selects Kana characters mode. |
static Key |
HIRAGANA_KATAKANA
Toggles between the Hiragana and Katakana writing systems.
|
static Key |
HOME
The
Home key. |
static Key |
HYPER
The
Hyper key. |
static Key |
INFO
Toggles the display of information about the currently selected content,
program, or media.
|
static Key |
INSERT
The Insert key,
Ins . |
static Key |
INSTANT_REPLAY
Tells the device to perform an instant replay (typically some form of
jumping back a short amount of time then playing it again, possibly but
not usually in slow motion).
|
static Key |
JUNJA_MODE
Selects the Junja mode, in which Korean is represented using single-byte
Latin characters.
|
static Key |
KANA_MODE
The
Kana Mode (Kana Lock) key. |
static Key |
KANJI_MODE
The
Kanji Mode key. |
static Key |
KATAKANA
The
Katakana key. |
static Key |
KEY11
The
11 key found on certain media numeric keypads. |
static Key |
KEY12
The
12 key found on certain media numeric keypads. |
static Key |
LAST_NUMBER_REDIAL
The
Redial button, which redials the last-called number. |
static Key |
LAUNCH_APPLICATION1
The first generic application launcher button.
|
static Key |
LAUNCH_APPLICATION10
The 10th generic application launcher button.
|
static Key |
LAUNCH_APPLICATION11
The 11th generic application launcher button.
|
static Key |
LAUNCH_APPLICATION12
The 12th generic application launcher button.
|
static Key |
LAUNCH_APPLICATION13
The 13th generic application launcher button.
|
static Key |
LAUNCH_APPLICATION14
The 14th generic application launcher button.
|
static Key |
LAUNCH_APPLICATION15
The 15th generic application launcher button.
|
static Key |
LAUNCH_APPLICATION16
The 16th generic application launcher button.
|
static Key |
LAUNCH_APPLICATION2
The second generic application launcher button.
|
static Key |
LAUNCH_APPLICATION3
The third generic application launcher button.
|
static Key |
LAUNCH_APPLICATION4
The fourth generic application launcher button.
|
static Key |
LAUNCH_APPLICATION5
The fifth generic application launcher button.
|
static Key |
LAUNCH_APPLICATION6
The sixth generic application launcher button.
|
static Key |
LAUNCH_APPLICATION7
The seventh generic application launcher button.
|
static Key |
LAUNCH_APPLICATION8
The eighth generic application launcher button.
|
static Key |
LAUNCH_APPLICATION9
The ninth generic application launcher button.
|
static Key |
LAUNCH_CALCULATOR
The
Calculator key. |
static Key |
LAUNCH_CALENDAR
The
Calendar key. |
static Key |
LAUNCH_CONTACTS
The
Contacts key. |
static Key |
LAUNCH_MAIL
The
Mail key. |
static Key |
LAUNCH_MEDIA_PLAYER
The
Media Player key. |
static Key |
LAUNCH_MUSIC_PLAYER
The
Music Player key. |
static Key |
LAUNCH_MY_COMPUTER
The
My Computer key on Windows keyboards. |
static Key |
LAUNCH_PHONE
The
Phone key, to open the phone dialer application if one
is present. |
static Key |
LAUNCH_SCREEN_SAVER
The
Screen Saver key. |
static Key |
LAUNCH_SPREADSHEET
The
Spreadsheet key. |
static Key |
LAUNCH_WEB_BROWSER
The
Web Browser key. |
static Key |
LAUNCH_WEB_CAM
The
WebCam key. |
static Key |
LAUNCH_WORD_PROCESSOR
The
Word Processor key. |
static Key |
LINK
Opens content linked to the current program, if available and possible.
|
static Key |
LIST_PROGRAM
Lists the current program.
|
static Key |
LIVE_CONTENT
Toggles a display listing currently available live content or programs.
|
static Key |
LOCK
Locks or unlocks the currently selected content or program.
|
static Key |
LOG_OFF
The
LogOff key. |
static Key |
MAIL_FORWARD
Opens the user interface to forward a message.
|
static Key |
MAIL_REPLY
Opens the user interface to reply to a message.
|
static Key |
MAIL_SEND
Sends the current message.
|
static Key |
MANNER_MODE
A button which cycles among the notification modes: silent, vibrate,
ring, and so forth.
|
static Key |
MEDIA_APPS
Presents a list of media applications, such as photo viewers, audio and
video players, and games.
|
static Key |
MEDIA_AUDIO_TRACK
The Audio Track key.
|
static Key |
MEDIA_FAST_FORWARD
Starts, continues, or increases the speed of fast forwarding the media.
|
static Key |
MEDIA_LAST
Jumps back to the last-viewed content, program, or other media.
|
static Key |
MEDIA_PAUSE
Pauses the currently playing media.
|
static Key |
MEDIA_PLAY
Starts or continues playing media at normal speed, if not already doing
so.
|
static Key |
MEDIA_PLAY_PAUSE
Toggles between playing and pausing the current media.
|
static Key |
MEDIA_RECORD
Starts or resumes recording media.
|
static Key |
MEDIA_REWIND
Starts, continues, or increases the speed of rewinding the media.
|
static Key |
MEDIA_SKIP_BACKWARD
Skips backward to the previous content or program.
|
static Key |
MEDIA_SKIP_FORWARD
Skips forward to the next content or program.
|
static Key |
MEDIA_STEP_BACKWARD
Steps backward to the previous content or program.
|
static Key |
MEDIA_STEP_FORWARD
Steps forward to the next content or program.
|
static Key |
MEDIA_STOP
Stops the current media activity (such as playing, recording, pausing,
forwarding, or rewinding).
|
static Key |
MEDIA_TOP_MENU
Top Menu button; opens the media's main menu, such as on a DVD or Blu-Ray
disc.
|
static Key |
MEDIA_TRACK_NEXT
Seeks to the next media or program track.
|
static Key |
MEDIA_TRACK_PREVIOUS
Seeks to the previous media or program track.
|
static Key |
META
The
Meta key. |
static Key |
MICROPHONE_TOGGLE
Toggles the microphone on and off.
|
static Key |
MICROPHONE_VOLUME_DOWN
Decreases the microphone's input volume.
|
static Key |
MICROPHONE_VOLUME_MUTE
Mutes the microphone input.
|
static Key |
MICROPHONE_VOLUME_UP
Increases the microphone's input volume.
|
static Key |
MODE_CHANGE
The Mode Change key.
|
static Key |
MULTIPLY
The numeric keypad's multiplication key,
* . |
static Key |
NAVIGATE_IN
Navigates into a submenu or option.
|
static Key |
NAVIGATE_NEXT
Navigates to the next item.
|
static Key |
NAVIGATE_OUT
Navigates out of the current screen or menu.
|
static Key |
NAVIGATE_PREVIOUS
Navigates to the previous item.
|
static Key |
NEW
Creates a new document or message.
|
static Key |
NEXT_CANDIDATE
The Next Candidate function key.
|
static Key |
NEXT_FAVORITE_CHANNEL
Cycles to the next channel in the favorites list.
|
static Key |
NEXT_USER_PROFILE
Cycles to the next saved user profile, if this feature is supported and
multiple profiles exist.
|
static Key |
NON_CONVERT
The
NonConvert ("Don't convert") key. |
static Key |
NOTIFICATION
The
Notification key. |
static Key |
NUM_LOCK
The
NumLock (Number Lock) key. |
static Key |
ON_DEMAND
Opens the user interface for selecting on demand content or programs to
watch.
|
static Key |
OPEN
Opens an existing document or message.
|
static Key |
PAGE_DOWN
The
Page Down (or PgDn ) key. |
static Key |
PAGE_UP
The
Page Up (or PgUp ) key. |
static Key |
PAIRING
Starts the process of pairing the remote with a device to be controlled.
|
static Key |
PASTE
Paste from the clipboard.
|
static Key |
PAUSE
The
Pause key. |
static Key |
PINP_DOWN
A button to move the picture-in-picture view downward.
|
static Key |
PINP_MOVE
A button to control moving the picture-in-picture view.
|
static Key |
PINP_TOGGLE
Toggles display of the picture-in-picture view on and off.
|
static Key |
PINP_UP
A button to move the picture-in-picture view upward.
|
static Key |
PLAY
The
Play key. |
static Key |
PLAY_SPEED_DOWN
Decreases the media playback rate.
|
static Key |
PLAY_SPEED_RESET
Returns the media playback rate to normal.
|
static Key |
PLAY_SPEED_UP
Increases the media playback rate.
|
static Key |
POWER
The
Power button or key, to toggle power on and off. |
static Key |
POWER_OFF
The
PowerOff or PowerDown key. |
static Key |
PREVIOUS_CANDIDATE
The Previous Candidate key.
|
static Key |
PRINT
Prints the current document or message.
|
static Key |
PRINT_SCREEN
The
PrintScreen or PrtScr key. |
static Key |
PROCESS
The
Process key. |
static Key |
PROPS
The
Props (Properties) key. |
static Key |
RANDOM_TOGGLE
Toggles random media (also known as "shuffle mode") on and off.
|
static Key |
RC_LOW_BATTERY
A code sent when the remote control's battery is low.
|
static Key |
RECORD_SPEED_NEXT
Cycles among the available media recording speeds.
|
static Key |
REDO
Redo the last action.
|
static Key |
RF_BYPASS
Toggles radio frequency (RF) input bypass mode on and off.
|
static Key |
ROMAJI
The
Romaji key; selects the Roman character set. |
static Key |
SAVE
Saves the current document or message.
|
static Key |
SCAN_CHANNELS_TOGGLE
Toggles the channel scan mode on and off; this is a mode which flips
through channels automatically until the user stops the scan.
|
static Key |
SCREEN_MODE_NEXT
Cycles through the available screen display modes.
|
static Key |
SCROLL_LOCK
The
Scroll Lock key. |
static Key |
SELECT
The
Select key. |
static Key |
SEPARATOR
The numeric keypad's places separator character (in the United States,
this is a comma, but elsewhere it is frequently a period).
|
static Key |
SETTINGS
Toggles display of the device's settings screen on and off.
|
static Key |
SHIFT
The
Shift key. |
static Key |
SINGLE_CANDIDATE
The Single Candidate key.
|
static Key |
SOFT1
The first general-purpose virtual function key.
|
static Key |
SOFT2
The second general-purpose virtual function key.
|
static Key |
SOFT3
The third general-purpose virtual function key.
|
static Key |
SOFT4
The fourth general-purpose virtual function key.
|
static Key |
SPACE
The space key,
Space Bar . |
static Key |
SPEECH_CORRECTION_LIST
Presents a list of possible corrections for a word which was incorrectly
identified.
|
static Key |
SPEECH_INPUT_TOGGLE
Toggles between dictation mode and command/control mode.
|
static Key |
SPELL_CHECK
Starts spell checking the current document.
|
static Key |
SPLIT_SCREEN_TOGGLE
Toggles split screen display mode on and off.
|
static Key |
STANDBY
The
Standby key; also known as Suspend or
Sleep . |
static Key |
STB_INPUT
Cycles among input modes on an external set-top box (STB).
|
static Key |
STB_POWER
Toggles on and off an external STB.
|
static Key |
SUBTITLE
Toggles the display of subtitles on and off if they're available.
|
static Key |
SUBTRACT
The numeric keypad's subtraction key, -.
|
static Key |
SUPER
The
Super key. |
static Key |
SYMBOL
The
Symbol modifier key (found on certain virtual
keyboards). |
static Key |
SYMBOL_LOCK
The
Symbol Lock key. |
static Key |
TAB
The Horizontal Tab key,
Tab . |
static Key |
TELETEXT
Toggles display of
teletext, if
available.
|
static Key |
TV
Switches into TV viewing mode.
|
static Key |
TV_3D_MODE
Toggles 3D TV mode on and off.
|
static Key |
TV_ANTENNA_CABLE
Toggles between antenna and cable inputs.
|
static Key |
TV_AUDIO_DESCRIPTION
Toggles audio description mode on and off.
|
static Key |
TV_AUDIO_DESCRIPTION_MIX_DOWN
Decreases the audio description's mixing volume; reduces the volume of
the audio descriptions relative to the program sound.
|
static Key |
TV_AUDIO_DESCRIPTION_MIX_UP
Increases the audio description's mixing volume; increases the volume of
the audio descriptions relative to the program sound.
|
static Key |
TV_CONTENTS_MENU
Displays or hides the media contents available for playback (this may be
a channel guide showing the currently airing programs, or a list of media
files to play).
|
static Key |
TV_DATA_SERVICE
Displays or hides the TV's data service menu.
|
static Key |
TV_INPUT
Cycles the input mode on an external TV.
|
static Key |
TV_INPUT_COMPONENT1
Switches to the input "Component 1."
|
static Key |
TV_INPUT_COMPONENT2
Switches to the input "Component 2."
|
static Key |
TV_INPUT_COMPOSITE1
Switches to the input "Composite 1."
|
static Key |
TV_INPUT_COMPOSITE2
Switches to the input "Composite 2."
|
static Key |
TV_INPUT_HDMI1
Switches to the input "HDMI 1."
|
static Key |
TV_INPUT_HDMI2
Switches to the input "HDMI 2."
|
static Key |
TV_INPUT_HDMI3
Switches to the input "HDMI 3."
|
static Key |
TV_INPUT_HDMI4
Switches to the input "HDMI 4."
|
static Key |
TV_INPUT_VGA1
Switches to the input "VGA 1."
|
static Key |
TV_MEDIA_CONTEXT
The Media Context menu key.
|
static Key |
TV_NETWORK
Toggle the TV's network connection on and off.
|
static Key |
TV_NUMBER_ENTRY
Put the TV into number entry mode.
|
static Key |
TV_POWER
The device's power button.
|
static Key |
TV_RADIO_SERVICE
Radio button.
|
static Key |
TV_SATELLITE
Satellite button.
|
static Key |
TV_SATELLITE_BS
Broadcast Satellite button.
|
static Key |
TV_SATELLITE_CS
Communication Satellite button.
|
static Key |
TV_SATELLITE_TOGGLE
Toggles among available satellites.
|
static Key |
TV_TERRESTRIAL_ANALOG
Selects analog terrestrial television service (analog cable or antenna
reception).
|
static Key |
TV_TERRESTRIAL_DIGITAL
Selects digital terrestrial television service (digital cable or antenna
reception).
|
static Key |
TV_TIMER
Timer programming button.
|
static Key |
UNDO
Undo the last action.
|
static Key |
UNIDENTIFIED
The user agent wasn't able to map the event's virtual keycode to a
specific key value.
|
static Key |
VIDEO_MODE_NEXT
Cycles through the available video modes.
|
static Key |
VOICE_DIAL
The
Voice Dial key. |
static Key |
WAKE_UP
The
WakeUp key; used to wake the computer from the
hibernation or standby modes. |
static Key |
WINK
Causes the device to identify itself in some fashion, such as by flashing
a light, briefly changing the brightness of indicator lights, or emitting
a tone.
|
static Key |
ZENKAKU
The
Zenkaku (full width) characters key. |
static Key |
ZENKAKU_HANAKU
The
Zenkaku/Hankaku (full width/half width) toggle key. |
static Key |
ZOOM_IN
The
ZoomIn key. |
static Key |
ZOOM_OUT
The
ZoomOut key. |
static Key |
ZOOM_TOGGLE
Toggles between full-screen and scaled content display, or otherwise
change the magnification level.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getKeys()
Returns the list (with at least one element) of printable representations
of the key, which should reflect the
key property in the
JavaScript KeyboardEvent . |
default boolean |
matches(String key)
Checks if
key is a printable representation for this
instance. |
static Key |
of(String key,
String... additionalKeys)
Returns a
Key instance for a printable representation of the key. |
static final Key UNIDENTIFIED
static final Key ALT
Alt
(Alternative) key.static final Key ALT_GRAPH
AltGr
or AltGraph
(Alternate Graphics) key.
Enables the ISO Level 3 shift modifier (where Shift
is the
level 2 modifier).static final Key CAPS_LOCK
Caps Lock
key. Toggles the capital character lock on and
off for subsequent input.static final Key CONTROL
Control
, Ctrl
, or Ctl
key.
Allows typing control characters.static final Key FN
Fn
(Function modifier) key. Used to allow generating
function key (F1
-F15
, for instance) characters
on keyboards without a dedicated function key area. Often handled in
hardware so that events aren't generated for this key.static final Key FN_LOCK
FnLock
or F-Lock
(Function Lock) key.
Toggles the function key mode described by "Fn" on and off. Often handled
in hardware so that events aren't generated for this key.static final Key HYPER
Hyper
key.static final Key META
Meta
key. Allows issuing special command inputs. This is
the Windows
logo key, or the Command
or
?
key on Mac keyboards.static final Key NUM_LOCK
NumLock
(Number Lock) key. Toggles the numeric keypad
between number entry some other mode (often directional arrows).static final Key SCROLL_LOCK
Scroll Lock
key. Toggles beteen scrolling and cursor
movement modes.static final Key SHIFT
Shift
key. Modifies keystrokes to allow typing upper (or
other) case letters, and to support typing punctuation and other special
characters.static final Key SUPER
Super
key.static final Key SYMBOL
Symbol
modifier key (found on certain virtual
keyboards).static final Key SYMBOL_LOCK
Symbol Lock
key.static final Key ENTER
Enter
or ?
key (sometimes labeled
Return
).static final Key TAB
Tab
.static final Key SPACE
Space Bar
.static final Key ARROW_DOWN
static final Key ARROW_LEFT
static final Key ARROW_RIGHT
static final Key ARROW_UP
static final Key END
End
key. Moves to the end of content.static final Key HOME
Home
key. Moves to the start of content.static final Key PAGE_DOWN
Page Down
(or PgDn
) key. Scrolls down or
displays the next page of content.static final Key PAGE_UP
Page Up
(or PgUp
) key. Scrolls up or
displays the previous page of content.static final Key BACKSPACE
Backspace
key. This key is labeled Delete
on Mac keyboards.static final Key CLEAR
Clear
key. Removes the currently selected input.static final Key COPY
Copy
key (on certain extended keyboards).static final Key CR_SEL
CrSel
.static final Key CUT
Cut
key (on certain extended keyboards).static final Key DELETE
Del
.static final Key ERASE_EOF
static final Key EX_SEL
ExSel
(Extend Selection) key.static final Key INSERT
Ins
. Toggles between inserting and
overwriting text.static final Key PASTE
static final Key REDO
static final Key UNDO
static final Key ACCEPT
Accept
, Commit
, or OK
key or
button. Accepts the currently selected option or input method sequence
conversion.static final Key AGAIN
Again
key. Redoes or repeats a previous action.static final Key ATTN
Attn
(Attention) key.static final Key CANCEL
Cancel
key.static final Key CONTEXT_MENU
Windows
(or OS
) key and the Control
key on the right
side of the keyboard.static final Key ESCAPE
Esc
(Escape) key. Typically used as an exit, cancel, or
"escape this operation" button. Historically, the Escape character was
used to signal the start of a special control sequence of characters
called an "escape sequence."static final Key EXECUTE
Execute
key.static final Key FIND
Find
key. Opens an interface (typically a dialog box)
for performing a find/search operation.static final Key FINISH
Finish
key.static final Key HELP
Help
key. Opens or toggles the display of help
information.static final Key PAUSE
Pause
key. Pauses the current application or state, if
applicable. Note: This shouldn't be confused with the
"MediaPause"
key value, which is used for media controllers,
rather than to control applications and processes.static final Key PLAY
Play
key. Resumes a previously paused application, if
applicable. Note: This shouldn't be confused with the
"MediaPlay"
key value, which is used for media controllers,
rather than to control applications and processes.static final Key PROPS
Props
(Properties) key.static final Key SELECT
Select
key.static final Key ZOOM_IN
ZoomIn
key.static final Key ZOOM_OUT
ZoomOut
key.static final Key BRIGHTNESS_DOWN
static final Key BRIGHTNESS_UP
static final Key EJECT
Eject
key. Ejects removable media (or toggles an optical
storage device tray open and closed).static final Key LOG_OFF
LogOff
key.static final Key POWER
Power
button or key, to toggle power on and off.
Note: Not all systems pass this key through to the user agent.
static final Key POWER_OFF
PowerOff
or PowerDown
key. Shuts off the
system.static final Key PRINT_SCREEN
PrintScreen
or PrtScr
key. Sometimes
SnapShot
. Captures the screen and prints it or saves it to
disk.static final Key HIBERNATE
Hibernate
key. This saves the state of the computer to
disk and then shuts down; the computer can be returned to its previous
state by restoring the saved state information.static final Key STANDBY
Standby
key; also known as Suspend
or
Sleep
. This turns off the display and puts the computer in a
low power consumption mode, without completely powering off.static final Key WAKE_UP
WakeUp
key; used to wake the computer from the
hibernation or standby modes.static final Key ALL_CANDIDATES
All Candidates
key, which starts multi-candidate mode,
in which multiple candidates are displayed for the ongoing input.static final Key ALPHANUMERIC
Alphanumeric
key.static final Key CODE_INPUT
Code Input
key, which enables code input mode, which
lets the user enter characters by typing their code points (their Unicode
character numbers, typically).static final Key COMPOSE
Compose
key.static final Key CONVERT
Convert
key, which instructs the IME to convert the
current input method sequence into the resulting character.static final Key DEAD
static final Key FINAL_MODE
Final
(Final Mode) key is used on some Asian keyboards
to enter final mode when using IMEs.static final Key GROUP_FIRST
static final Key GROUP_LAST
static final Key GROUP_NEXT
static final Key GROUP_PREVIOUS
static final Key MODE_CHANGE
static final Key NEXT_CANDIDATE
static final Key NON_CONVERT
NonConvert
("Don't convert") key. This accepts the
current input method sequence without running conversion when using an
IME.static final Key PREVIOUS_CANDIDATE
static final Key PROCESS
Process
key. Instructs the IME to process the
conversion.static final Key SINGLE_CANDIDATE
static final Key HANGUL_MODE
Hangul
(Korean character set) mode key, which toggles
between Hangul and English entry modes.static final Key HANJA_MODE
static final Key JUNJA_MODE
static final Key EISU
Eisu
key. This key's purpose is defined by the IME, but
may be used to close the IME.static final Key HANKAKU
Hankaku
(half-width characters) key.static final Key HIRAGANA
Hiragana
key; selects Kana characters mode.static final Key HIRAGANA_KATAKANA
static final Key KANA_MODE
Kana Mode
(Kana Lock) key.static final Key KANJI_MODE
Kanji Mode
key. Enables entering Japanese text using the
ideographic characters of Chinese origin.static final Key KATAKANA
Katakana
key.static final Key ROMAJI
Romaji
key; selects the Roman character set.static final Key ZENKAKU
Zenkaku
(full width) characters key.static final Key ZENKAKU_HANAKU
Zenkaku/Hankaku
(full width/half width) toggle key.static final Key F1
F1
.static final Key F2
F2
key.static final Key F3
F3
key.static final Key F4
F4
key.static final Key F5
F5
key.static final Key F6
F6
key.static final Key F7
F7
key.static final Key F8
F8
key.static final Key F9
F9
key.static final Key F10
F10
key.static final Key F11
F11
key.static final Key F12
F12
key.static final Key F13
F13
key.static final Key F14
F14
key.static final Key F15
F15
key.static final Key F16
F16
key.static final Key F17
F17
key.static final Key F18
F18
key.static final Key F19
F19
key.static final Key F20
F20
key.static final Key SOFT1
static final Key SOFT2
static final Key SOFT3
static final Key SOFT4
static final Key APP_SWITCH
static final Key CALL
Call
key; dials the number which has been entered.static final Key CAMERA
Camera
key; activates the camera.static final Key CAMERA_FOCUS
Focus
key; focuses the camera.static final Key END_CALL
End Call
or Hang Up
button.static final Key GO_BACK
Back
button.static final Key GO_HOME
Home
button, which takes the user to the phone's main
screen (usually an application launcher).static final Key HEADSET_HOOK
Headset Hook
key. This is typically actually a button on
the headset which is used to hang up calls and play or pause media.static final Key LAST_NUMBER_REDIAL
Redial
button, which redials the last-called number.static final Key NOTIFICATION
Notification
key.static final Key MANNER_MODE
static final Key VOICE_DIAL
Voice Dial
key. Initiates voice dialing.static final Key CHANNEL_DOWN
static final Key CHANNEL_UP
static final Key MEDIA_FAST_FORWARD
static final Key MEDIA_PAUSE
static final Key MEDIA_PLAY
static final Key MEDIA_PLAY_PAUSE
static final Key MEDIA_RECORD
static final Key MEDIA_REWIND
static final Key MEDIA_STOP
static final Key MEDIA_TRACK_NEXT
static final Key MEDIA_TRACK_PREVIOUS
static final Key AUDIO_BALANCE_LEFT
static final Key AUDIO_BALANCE_RIGHT
static final Key AUDIO_BASS_DOWN
static final Key AUDIO_BASS_BOOST_DOWN
static final Key AUDIO_BASS_BOOST_TOGGLE
static final Key AUDIO_BASS_BOOST_UP
static final Key AUDIO_BASS_UP
static final Key AUDIO_FADER_FRONT
static final Key AUDIO_FADER_REAR
static final Key AUDIO_SURROUND_MODE_NEXT
static final Key AUDIO_TREBLE_DOWN
static final Key AUDIO_TREBLE_UP
static final Key AUDIO_VOLUME_DOWN
static final Key AUDIO_VOLUME_MUTE
static final Key AUDIO_VOLUME_UP
static final Key MICROPHONE_TOGGLE
static final Key MICROPHONE_VOLUME_DOWN
static final Key MICROPHONE_VOLUME_MUTE
static final Key MICROPHONE_VOLUME_UP
static final Key TV
static final Key TV_3D_MODE
static final Key TV_ANTENNA_CABLE
static final Key TV_AUDIO_DESCRIPTION
static final Key TV_AUDIO_DESCRIPTION_MIX_DOWN
static final Key TV_AUDIO_DESCRIPTION_MIX_UP
static final Key TV_CONTENTS_MENU
static final Key TV_DATA_SERVICE
static final Key TV_INPUT
static final Key TV_INPUT_COMPONENT1
static final Key TV_INPUT_COMPONENT2
static final Key TV_INPUT_COMPOSITE1
static final Key TV_INPUT_COMPOSITE2
static final Key TV_INPUT_HDMI1
static final Key TV_INPUT_HDMI2
static final Key TV_INPUT_HDMI3
static final Key TV_INPUT_HDMI4
static final Key TV_INPUT_VGA1
static final Key TV_MEDIA_CONTEXT
static final Key TV_NETWORK
static final Key TV_NUMBER_ENTRY
static final Key TV_POWER
static final Key TV_RADIO_SERVICE
static final Key TV_SATELLITE
static final Key TV_SATELLITE_BS
static final Key TV_SATELLITE_CS
static final Key TV_SATELLITE_TOGGLE
static final Key TV_TERRESTRIAL_ANALOG
static final Key TV_TERRESTRIAL_DIGITAL
static final Key TV_TIMER
static final Key AVR_INPUT
static final Key AVR_POWER
static final Key COLOR_F0_RED
static final Key COLOR_F1_GREEN
static final Key COLOR_F2_YELLOW
static final Key COLOR_F3_BLUE
static final Key COLOR_F4_GREY
static final Key COLOR_F5_BROWN
static final Key CLOSED_CAPTION_TOGGLE
static final Key DIMMER
static final Key DISPLAY_SWAP
static final Key DVR
static final Key EXIT
static final Key FAVORITE_CLEAR0
static final Key FAVORITE_CLEAR1
static final Key FAVORITE_CLEAR2
static final Key FAVORITE_CLEAR3
static final Key FAVORITE_RECALL0
static final Key FAVORITE_RECALL1
static final Key FAVORITE_RECALL2
static final Key FAVORITE_RECALL3
static final Key FAVORITE_STORE0
static final Key FAVORITE_STORE1
static final Key FAVORITE_STORE2
static final Key FAVORITE_STORE3
static final Key GUIDE
static final Key GUIDE_NEXT_DAY
static final Key GUIDE_PREVIOUS_DAY
static final Key INFO
static final Key INSTANT_REPLAY
static final Key LINK
static final Key LIST_PROGRAM
static final Key LIVE_CONTENT
static final Key LOCK
static final Key MEDIA_APPS
static final Key MEDIA_AUDIO_TRACK
static final Key MEDIA_LAST
static final Key MEDIA_SKIP_BACKWARD
static final Key MEDIA_SKIP_FORWARD
static final Key MEDIA_STEP_BACKWARD
static final Key MEDIA_STEP_FORWARD
static final Key MEDIA_TOP_MENU
static final Key NAVIGATE_IN
static final Key NAVIGATE_NEXT
static final Key NAVIGATE_OUT
static final Key NAVIGATE_PREVIOUS
static final Key NEXT_FAVORITE_CHANNEL
static final Key NEXT_USER_PROFILE
static final Key ON_DEMAND
static final Key PAIRING
static final Key PINP_DOWN
static final Key PINP_MOVE
static final Key PINP_TOGGLE
static final Key PINP_UP
static final Key PLAY_SPEED_DOWN
static final Key PLAY_SPEED_RESET
static final Key PLAY_SPEED_UP
static final Key RANDOM_TOGGLE
static final Key RC_LOW_BATTERY
static final Key RECORD_SPEED_NEXT
static final Key RF_BYPASS
static final Key SCAN_CHANNELS_TOGGLE
static final Key SCREEN_MODE_NEXT
static final Key SETTINGS
static final Key SPLIT_SCREEN_TOGGLE
static final Key STB_INPUT
static final Key STB_POWER
static final Key SUBTITLE
static final Key VIDEO_MODE_NEXT
static final Key WINK
static final Key ZOOM_TOGGLE
static final Key SPEECH_CORRECTION_LIST
static final Key SPEECH_INPUT_TOGGLE
static final Key CLOSE
static final Key NEW
static final Key OPEN
static final Key PRINT
static final Key SAVE
static final Key SPELL_CHECK
static final Key MAIL_FORWARD
static final Key MAIL_REPLY
static final Key MAIL_SEND
static final Key LAUNCH_CALCULATOR
Calculator
key. This is often used as a generic
application launcher key (APPCOMMAND_LAUNCH_APP2
).static final Key LAUNCH_CALENDAR
Calendar
key.static final Key LAUNCH_CONTACTS
Contacts
key.static final Key LAUNCH_MAIL
Mail
key.static final Key LAUNCH_MEDIA_PLAYER
Media Player
key.static final Key LAUNCH_MUSIC_PLAYER
Music Player
key.static final Key LAUNCH_MY_COMPUTER
My Computer
key on Windows keyboards. This is often used
as a generic application launcher key
(APPCOMMAND_LAUNCH_APP1
).static final Key LAUNCH_PHONE
Phone
key, to open the phone dialer application if one
is present.static final Key LAUNCH_SCREEN_SAVER
Screen Saver
key.static final Key LAUNCH_SPREADSHEET
Spreadsheet
key.static final Key LAUNCH_WEB_BROWSER
Web Browser
key.static final Key LAUNCH_WEB_CAM
WebCam
key. Opens the webcam application.static final Key LAUNCH_WORD_PROCESSOR
Word Processor
key. This may be an icon of a specific
word processor application, or a generic document icon.static final Key LAUNCH_APPLICATION1
static final Key LAUNCH_APPLICATION2
static final Key LAUNCH_APPLICATION3
static final Key LAUNCH_APPLICATION4
static final Key LAUNCH_APPLICATION5
static final Key LAUNCH_APPLICATION6
static final Key LAUNCH_APPLICATION7
static final Key LAUNCH_APPLICATION8
static final Key LAUNCH_APPLICATION9
static final Key LAUNCH_APPLICATION10
static final Key LAUNCH_APPLICATION11
static final Key LAUNCH_APPLICATION12
static final Key LAUNCH_APPLICATION13
static final Key LAUNCH_APPLICATION14
static final Key LAUNCH_APPLICATION15
static final Key LAUNCH_APPLICATION16
static final Key BROWSER_BACK
static final Key BROWSER_FAVORITES
static final Key BROWSER_FORWARD
static final Key BROWSER_HOME
static final Key BROWSER_REFRESH
static final Key BROWSER_SEARCH
static final Key BROWSER_STOP
static final Key DECIMAL
.
or ,
)
depending on the region.static final Key KEY11
11
key found on certain media numeric keypads.static final Key KEY12
12
key found on certain media numeric keypads.static final Key MULTIPLY
*
.static final Key ADD
+
.static final Key DIVIDE
static final Key SUBTRACT
static final Key SEPARATOR
static Key of(String key, String... additionalKeys)
Key
instance for a printable representation of the key.
The optional additionalKeys
parameter can be used to create an
instance which will match additional printable representations of the
same key, in the rare cases where browsers don't agree.
See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
key
- the printable representation of the key, not null
nor emptyadditionalKeys
- additional printable representations of the same keyKey
instanceList<String> getKeys()
key
property in the
JavaScript KeyboardEvent
.
See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
default boolean matches(String key)
key
is a printable representation for this
instance.key
- a printable representation of a keykey
is a printable representation for this
instanceCopyright © 2018. All rights reserved.