fuchsia.input

Added: 7

ENUMS

Key flexible

Type: uint32

Defined in fuchsia.input/keys.fidl

A Fuchsia key represents a control that can be pressed or released such as a key or a button on a keyboard or another input device.

The ordinal index for enum elements is derived from the USB HID Usage Tables at the time of definition. It is a 32 bit unsigned integer representing the USB HID Usage where the low 16 bits are the USB HID Usage ID and the high 16 bits are the USB HID Usage Page.

The descriptions for each value in the enum assume a US English keyboard layout. Actual behavior varies by layout.

NameValueDescription
0

Used when the value of Key is not known.

458756

Keyboard a and A

458757

Keyboard b and B

458758

Keyboard c and C

458759

Keyboard d and D

458760

Keyboard e and E

458761

Keyboard f and F

458762

Keyboard g and G

458763

Keyboard h and H

458764

Keyboard i and I

458765

Keyboard j and J

458766

Keyboard k and K

458767

Keyboard l and L

458768

Keyboard m and M

458769

Keyboard n and N

458770

Keyboard o and O

458771

Keyboard p and P

458772

Keyboard q and Q

458773

Keyboard r and R

458774

Keyboard s and S

458775

Keyboard t and T

458776

Keyboard u and U

458777

Keyboard v and V

458778

Keyboard w and W

458779

Keyboard x and X

458780

Keyboard y and Y

458781

Keyboard z and Z

458782

Keyboard 1 and !

458783

Keyboard 2 and @

458784

Keyboard 3 and #

458785

Keyboard 4 and $

458786

Keyboard 5 and %

458787

Keyboard 6 and ^

458788

Keyboard 7 and &

458789

Keyboard 8 and *

458790

Keyboard 9 and (

458791

Keyboard 0 and )

458792

Keyboard Enter (Return)

458793

Keyboard Escape

458794

Keyboard Backspace (Backward Delete)

458795

Keyboard Tab

458796

Keyboard Spacebar

458797

Keyboard - and (underscore)

458798

Keyboard = and +

458799

Keyboard [ and {

458800

Keyboard ] and }

458801

Keyboard \ and |

458802

Keyboard Non-US # and ~

458803

Keyboard ; and :

458804

Keyboard ' and "

458805

Keyboard Grave Accent and Tilde

458806

Keyboard , and <

458807

Keyboard . and >

458808

Keyboard / and ?

458809

Keyboard Caps Lock

458810

Keyboard F1

458811

Keyboard F2

458812

Keyboard F3

458813

Keyboard F4

458814

Keyboard F5

458815

Keyboard F6

458816

Keyboard F7

458817

Keyboard F8

458818

Keyboard F9

458819

Keyboard F10

458820

Keyboard F11

458821

Keyboard F12

458822

Keyboard Print Screen

458823

Keyboard Scroll Lock

458824

Keyboard Pause

458825

Keyboard Insert

458826

Keyboard Home

458827

Keyboard Page Up

458828

Keyboard Forward Delete

458829

Keyboard End

458830

Keyboard Page Down

458831

Keyboard Right Arrow

458832

Keyboard Left Arrow

458833

Keyboard Down Arrow

458834

Keyboard Up Arrow

458835

Keypad Num Lock and Clear

458836

Keypad /

458837

Keypad *

458838

Keypad -

458839

Keypad +

458840

Keypad ENTER

458841

Keypad 1 and End

458842

Keypad 2 and Down Arrow

458843

Keypad 3 and Page Down

458844

Keypad 4 and Left Arrow

458845

Keypad 5

458846

Keypad 6 and Right Arrow

458847

Keypad 7 and Home

458848

Keypad 8 and Up Arrow

458849

Keypad 9 and Page Up

458850

Keypad 0 and Insert

458851

Keypad . and Delete

458852

Keyboard Non-US \ and |

458855

Keypad =

458870

Keyboard Menu

458976

Keyboard Left Control

458977

Keyboard Left Shift

458978

Keyboard Left Alt

458979

Keyboard Left GUI (Meta, Windows)

458980

Keyboard Right Control

458981

Keyboard Right Shift

458982

Keyboard Right Alt

458983

Keyboard Right GUI (Meta, Windows)

458879

Mute

Silences played sounds.

458881

Turn volume down

458880

Turn volume up

786637

Play media, or pause media if playing

786658

Media mute

Silences media playback. Other sounds may still be heard, e.g. system notification sounds.

786665

Volume Increment

786666

Volume Decrement

786980

Back

Go back to the previous page in the browser. This, and other action keys are defined in Chromium.

786983

Refresh

Refresh the current page in the browser.

786992

Full screen view

Zooms the focused window to full screen.

786850

Select task/application

Shows the task selection window

786543

Reduce screen brightness

786544

Increase screen brightness

4294901761

NOTE: the following are self-defined and do not have to follow the HID usage pages. We use HID-Vendor-Specific page 0xFFFF to represent Fuchsia defined keys. Assistant Key.

4294901762

Power Button.

4294901763

Sleep Button.

Added: 27
4294901845

Warning: following keycodes maybe changed in the future, please don't use!!! We use following keycodes in starnix tests. Most of them are keycodes in non-US keyboard layouts, we may move them to meaning enum once we support those keyboard layouts. See b/311425670 for details.

4294901846
4294901849
4294901852
4294901853
4294901854
4294901881
4294901882
4294901883
4294901884
4294901893
4294901895
4294901897
4294901916
4294901919
4294901920
4294901922
4294901923
4294901925
4294901926
4294901927
4294901928
4294901929
4294901933
4294901937
4294901938
4294901939
4294901940
4294901961
4294901967
4294901968
4294901972
4294901986
4294902048
4294902049
4294902050
4294902051
4294902052
4294902053
4294902054
4294902055
4294902056
4294902057
4294902058
4294902059
4294902060
4294902061
4294902062
4294902063
4294902064
4294902065
4294902066
4294902067
4294902068
4294902069
4294902070
4294902071
4294902072
4294902073
4294902074
4294902075
4294902076
4294902077
4294902078
4294902113
4294902122
4294902126
4294902130
4294902137
4294902158
4294902159
4294902160
4294902161
4294902162
4294902163
4294902165
4294902224
4294902282
4294902283

KeymapId flexible

Type: uint32

Defined in fuchsia.input/keymap.fidl

Keymaps that should always be present and selectable. The fallback keymaps may be useful on their own but are mainly here to ensure that at least some keymap is present if no other custom keymaps have been defined or in use.

NameValueDescription
0

The US_QWERTY keymap. This is also the default if no settings are ever applied.

1

The FR AZERTY keymap.

2

The US Dvorak keymap.

3

The US Colemak keymap.

Added: 10