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.

Added: 9
458881

Turn volume down

Added: 9
458880

Turn volume up

Added: 9
786637

Play media, or pause media if playing

Added: 9
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.

Added: 9
786983

Refresh

Refresh the current page in the browser.

Added: 9
786992

Full screen view

Zooms the focused window to full screen.

Added: 9
786850

Select task/application

Shows the task selection window

Added: 9
786543

Reduce screen brightness

Added: 9
786544

Increase screen brightness

Added: 9
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.

Added: 9
4294901762

Power Button.

Added: 9
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.

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

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