FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Key

    enum · ferroui-base · v0.5.0

    enum Key
    

    Defines the keys available on a keyboard.

    View source

    Members

    None

    None = 0
    

    No key pressed.

    Source

    Cancel

    Cancel = 1
    

    The Cancel key.

    Source

    Back

    Back = 2
    

    The Back key.

    Source

    Tab

    Tab = 3
    

    The Tab key.

    Source

    LineFeed

    LineFeed = 4
    

    The Linefeed key.

    Source

    Clear

    Clear = 5
    

    The Clear key.

    Source

    Return

    Return = 6
    

    The Return key.

    Source

    Pause

    Pause = 7
    

    The Pause key.

    Source

    CapsLock

    CapsLock = 8
    

    The Caps Lock key.

    Source

    HangulMode

    HangulMode = 9
    

    The IME Hangul mode key.

    Source

    JunjaMode

    JunjaMode = 10
    

    The IME Junja mode key.

    Source

    FinalMode

    FinalMode = 11
    

    The IME Final mode key.

    Source

    KanjiMode

    KanjiMode = 12
    

    The IME Kanji mode key.

    Source

    Escape

    Escape = 13
    

    The Escape key.

    Source

    ImeConvert

    ImeConvert = 14
    

    The IME Convert key.

    Source

    ImeNonConvert

    ImeNonConvert = 15
    

    The IME NonConvert key.

    Source

    ImeAccept

    ImeAccept = 16
    

    The IME Accept key.

    Source

    ImeModeChange

    ImeModeChange = 17
    

    The IME Mode change key.

    Source

    Space

    Space = 18
    

    The space bar.

    Source

    PageUp

    PageUp = 19
    

    The Page Up key.

    Source

    PageDown

    PageDown = 20
    

    The Page Down key.

    Source

    End

    End = 21
    

    The End key.

    Source

    Home

    Home = 22
    

    The Home key.

    Source

    Left

    Left = 23
    

    The Left arrow key.

    Source

    Up

    Up = 24
    

    The Up arrow key.

    Source

    Right

    Right = 25
    

    The Right arrow key.

    Source

    Down

    Down = 26
    

    The Down arrow key.

    Source

    Select

    Select = 27
    

    The Select key.

    Source

    Print

    Print = 28
    

    The Print key.

    Source

    Execute

    Execute = 29
    

    The Execute key.

    Source

    Snapshot

    Snapshot = 30
    

    The Print Screen key.

    Source

    Insert

    Insert = 31
    

    The Insert key.

    Source

    Delete

    Delete = 32
    

    The Delete key.

    Source

    Help

    Help = 33
    

    The Help key.

    Source

    D0

    D0 = 34
    

    The 0 key.

    Source

    D1

    D1 = 35
    

    The 1 key.

    Source

    D2

    D2 = 36
    

    The 2 key.

    Source

    D3

    D3 = 37
    

    The 3 key.

    Source

    D4

    D4 = 38
    

    The 4 key.

    Source

    D5

    D5 = 39
    

    The 5 key.

    Source

    D6

    D6 = 40
    

    The 6 key.

    Source

    D7

    D7 = 41
    

    The 7 key.

    Source

    D8

    D8 = 42
    

    The 8 key.

    Source

    D9

    D9 = 43
    

    The 9 key.

    Source

    A

    A = 44
    

    The A key.

    Source

    B

    B = 45
    

    The B key.

    Source

    C

    C = 46
    

    The C key.

    Source

    D

    D = 47
    

    The D key.

    Source

    E

    E = 48
    

    The E key.

    Source

    F

    F = 49
    

    The F key.

    Source

    G

    G = 50
    

    The G key.

    Source

    H

    H = 51
    

    The H key.

    Source

    I

    I = 52
    

    The I key.

    Source

    J

    J = 53
    

    The J key.

    Source

    K

    K = 54
    

    The K key.

    Source

    L

    L = 55
    

    The L key.

    Source

    M

    M = 56
    

    The M key.

    Source

    N

    N = 57
    

    The N key.

    Source

    O

    O = 58
    

    The O key.

    Source

    P

    P = 59
    

    The P key.

    Source

    Q

    Q = 60
    

    The Q key.

    Source

    R

    R = 61
    

    The R key.

    Source

    S

    S = 62
    

    The S key.

    Source

    T

    T = 63
    

    The T key.

    Source

    U

    U = 64
    

    The U key.

    Source

    V

    V = 65
    

    The V key.

    Source

    W

    W = 66
    

    The W key.

    Source

    X

    X = 67
    

    The X key.

    Source

    Y

    Y = 68
    

    The Y key.

    Source

    Z

    Z = 69
    

    The Z key.

    Source

    LWin

    LWin = 70
    

    The left Windows key.

    Source

    RWin

    RWin = 71
    

    The right Windows key.

    Source

    Apps

    Apps = 72
    

    The Application key.

    Source

    Sleep

    Sleep = 73
    

    The Sleep key.

    Source

    NumPad0

    NumPad0 = 74
    

    The 0 key on the numeric keypad.

    Source

    NumPad1

    NumPad1 = 75
    

    The 1 key on the numeric keypad.

    Source

    NumPad2

    NumPad2 = 76
    

    The 2 key on the numeric keypad.

    Source

    NumPad3

    NumPad3 = 77
    

    The 3 key on the numeric keypad.

    Source

    NumPad4

    NumPad4 = 78
    

    The 4 key on the numeric keypad.

    Source

    NumPad5

    NumPad5 = 79
    

    The 5 key on the numeric keypad.

    Source

    NumPad6

    NumPad6 = 80
    

    The 6 key on the numeric keypad.

    Source

    NumPad7

    NumPad7 = 81
    

    The 7 key on the numeric keypad.

    Source

    NumPad8

    NumPad8 = 82
    

    The 8 key on the numeric keypad.

    Source

    NumPad9

    NumPad9 = 83
    

    The 9 key on the numeric keypad.

    Source

    Multiply

    Multiply = 84
    

    The Multiply key.

    Source

    Add

    Add = 85
    

    The Add key.

    Source

    Separator

    Separator = 86
    

    The Separator key.

    Source

    Subtract

    Subtract = 87
    

    The Subtract key.

    Source

    Decimal

    Decimal = 88
    

    The Decimal key.

    Source

    Divide

    Divide = 89
    

    The Divide key.

    Source

    F1

    F1 = 90
    

    The F1 key.

    Source

    F2

    F2 = 91
    

    The F2 key.

    Source

    F3

    F3 = 92
    

    The F3 key.

    Source

    F4

    F4 = 93
    

    The F4 key.

    Source

    F5

    F5 = 94
    

    The F5 key.

    Source

    F6

    F6 = 95
    

    The F6 key.

    Source

    F7

    F7 = 96
    

    The F7 key.

    Source

    F8

    F8 = 97
    

    The F8 key.

    Source

    F9

    F9 = 98
    

    The F9 key.

    Source

    F10

    F10 = 99
    

    The F10 key.

    Source

    F11

    F11 = 100
    

    The F11 key.

    Source

    F12

    F12 = 101
    

    The F12 key.

    Source

    F13

    F13 = 102
    

    The F13 key.

    Source

    F14

    F14 = 103
    

    The F14 key.

    Source

    F15

    F15 = 104
    

    The F15 key.

    Source

    F16

    F16 = 105
    

    The F16 key.

    Source

    F17

    F17 = 106
    

    The F17 key.

    Source

    F18

    F18 = 107
    

    The F18 key.

    Source

    F19

    F19 = 108
    

    The F19 key.

    Source

    F20

    F20 = 109
    

    The F20 key.

    Source

    F21

    F21 = 110
    

    The F21 key.

    Source

    F22

    F22 = 111
    

    The F22 key.

    Source

    F23

    F23 = 112
    

    The F23 key.

    Source

    F24

    F24 = 113
    

    The F24 key.

    Source

    NumLock

    NumLock = 114
    

    The Numlock key.

    Source

    Scroll

    Scroll = 115
    

    The Scroll key.

    Source

    LeftShift

    LeftShift = 116
    

    The left Shift key.

    Source

    RightShift

    RightShift = 117
    

    The right Shift key.

    Source

    LeftCtrl

    LeftCtrl = 118
    

    The left Ctrl key.

    Source

    RightCtrl

    RightCtrl = 119
    

    The right Ctrl key.

    Source

    LeftAlt

    LeftAlt = 120
    

    The left Alt key.

    Source

    RightAlt

    RightAlt = 121
    

    The right Alt key.

    Source

    BrowserBack

    BrowserBack = 122
    

    The browser Back key.

    Source

    BrowserForward

    BrowserForward = 123
    

    The browser Forward key.

    Source

    BrowserRefresh

    BrowserRefresh = 124
    

    The browser Refresh key.

    Source

    BrowserStop

    BrowserStop = 125
    

    The browser Stop key.

    Source

    BrowserSearch

    BrowserSearch = 126
    

    The browser Search key.

    Source

    BrowserFavorites

    BrowserFavorites = 127
    

    The browser Favorites key.

    Source

    BrowserHome

    BrowserHome = 128
    

    The browser Home key.

    Source

    VolumeMute

    VolumeMute = 129
    

    The Volume Mute key.

    Source

    VolumeDown

    VolumeDown = 130
    

    The Volume Down key.

    Source

    VolumeUp

    VolumeUp = 131
    

    The Volume Up key.

    Source

    MediaNextTrack

    MediaNextTrack = 132
    

    The media Next Track key.

    Source

    MediaPreviousTrack

    MediaPreviousTrack = 133
    

    The media Previous Track key.

    Source

    MediaStop

    MediaStop = 134
    

    The media Stop key.

    Source

    MediaPlayPause

    MediaPlayPause = 135
    

    The media Play/Pause key.

    Source

    LaunchMail

    LaunchMail = 136
    

    The Launch Mail key.

    Source

    SelectMedia

    SelectMedia = 137
    

    The Select Media key.

    Source

    LaunchApplication1

    LaunchApplication1 = 138
    

    The Launch Application 1 key.

    Source

    LaunchApplication2

    LaunchApplication2 = 139
    

    The Launch Application 2 key.

    Source

    OemSemicolon

    OemSemicolon = 140
    

    The OEM Semicolon key.

    Source

    OemPlus

    OemPlus = 141
    

    The OEM Plus key.

    Source

    OemComma

    OemComma = 142
    

    The OEM Comma key.

    Source

    OemMinus

    OemMinus = 143
    

    The OEM Minus key.

    Source

    OemPeriod

    OemPeriod = 144
    

    The OEM Period key.

    Source

    OemQuestion

    OemQuestion = 145
    

    The OEM Question Mark key.

    Source

    OemTilde

    OemTilde = 146
    

    The OEM Tilde key.

    Source

    AbntC1

    AbntC1 = 147
    

    The ABNT_C1 (Brazilian) key.

    Source

    AbntC2

    AbntC2 = 148
    

    The ABNT_C2 (Brazilian) key.

    Source

    OemOpenBrackets

    OemOpenBrackets = 149
    

    The OEM Open Brackets key.

    Source

    OemPipe

    OemPipe = 150
    

    The OEM Pipe key.

    Source

    OemCloseBrackets

    OemCloseBrackets = 151
    

    The OEM Close Brackets key.

    Source

    OemQuotes

    OemQuotes = 152
    

    The OEM Quotes key.

    Source

    Oem8

    Oem8 = 153
    

    The OEM 8 key.

    Source

    OemBackslash

    OemBackslash = 154
    

    The OEM Backslash key.

    Source

    ImeProcessed

    ImeProcessed = 155
    

    A special key masking the real key being processed by an IME.

    Source

    System

    System = 156
    

    A special key masking the real key being processed as a system key.

    Source

    OemAttn

    OemAttn = 157
    

    The OEM ATTN key.

    Source

    OemFinish

    OemFinish = 158
    

    The OEM Finish key.

    Source

    DbeHiragana

    DbeHiragana = 159
    

    The DBE_HIRAGANA key.

    Source

    DbeSbcsChar

    DbeSbcsChar = 160
    

    The DBE_SBCSCHAR key.

    Source

    DbeDbcsChar

    DbeDbcsChar = 161
    

    The DBE_DBCSCHAR key.

    Source

    OemBackTab

    OemBackTab = 162
    

    The OEM BackTab key.

    Source

    DbeNoRoman

    DbeNoRoman = 163
    

    The DBE_NOROMAN key.

    Source

    CrSel

    CrSel = 164
    

    The CRSEL key.

    Source

    ExSel

    ExSel = 165
    

    The EXSEL key.

    Source

    EraseEof

    EraseEof = 166
    

    The ERASE EOF Key.

    Source

    Play

    Play = 167
    

    The Play key.

    Source

    DbeNoCodeInput

    DbeNoCodeInput = 168
    

    The DBE_NOCODEINPUT key.

    Source

    NoName

    NoName = 169
    

    Reserved for future use.

    Source

    DbeEnterDialogConversionMode

    DbeEnterDialogConversionMode = 170
    

    The DBE_ENTERDLGCONVERSIONMODE key.

    Source

    OemClear

    OemClear = 171
    

    The OEM Clear key.

    Source

    DeadCharProcessed

    DeadCharProcessed = 172
    

    The key is used with another key to create a single combined character.

    Source

    FnLeftArrow

    FnLeftArrow = 10001
    

    OSX Platform-specific Fn+Left key

    Source

    FnRightArrow

    FnRightArrow = 10002
    

    OSX Platform-specific Fn+Right key

    Source

    FnUpArrow

    FnUpArrow = 10003
    

    OSX Platform-specific Fn+Up key

    Source

    FnDownArrow

    FnDownArrow = 10004
    

    OSX Platform-specific Fn+Down key

    Source

    MediaHome

    MediaHome = 100000
    

    Remove control home button

    Source

    MediaChannelList

    MediaChannelList = 100001
    

    TV Channel up

    Source

    MediaChannelRaise

    MediaChannelRaise = 100002
    

    TV Channel up

    Source

    MediaChannelLower

    MediaChannelLower = 100003
    

    TV Channel down

    Source

    MediaRecord

    MediaRecord = 100005
    

    TV Channel down

    Source

    MediaRed

    MediaRed = 100010
    

    Remote control Red button

    Source

    MediaGreen

    MediaGreen = 100011
    

    Remote control Green button

    Source

    MediaYellow

    MediaYellow = 100012
    

    Remote control Yellow button

    Source

    MediaBlue

    MediaBlue = 100013
    

    Remote control Blue button

    Source

    MediaMenu

    MediaMenu = 100020
    

    Remote control Menu button

    Source

    MediaMore

    MediaMore = 100021
    

    Remote control dots button

    Source

    MediaOption

    MediaOption = 100022
    

    Remote control option button

    Source

    MediaInfo

    MediaInfo = 100023
    

    Remote control channel info button

    Source

    MediaSearch

    MediaSearch = 100024
    

    Remote control search button

    Source

    MediaSubtitle

    MediaSubtitle = 100025
    

    Remote control subtitle/caption button

    Source

    MediaTvGuide

    MediaTvGuide = 100026
    

    Remote control Tv guide detail button

    Source

    MediaPreviousChannel

    MediaPreviousChannel = 100027
    

    Remote control Previous Channel

    Source

    Enter

    const Enter: Key
    

    The Enter key.

    Source

    Capital

    const Capital: Key
    

    The Caps Lock key.

    Source

    KanaMode

    const KanaMode: Key
    

    The IME Kana mode key.

    Source

    HanjaMode

    const HanjaMode: Key
    

    The IME Hanja mode key.

    Source

    Prior

    const Prior: Key
    

    The Page Up key.

    Source

    Next

    const Next: Key
    

    The Page Down key.

    Source

    PrintScreen

    const PrintScreen: Key
    

    The Print Screen key.

    Source

    Oem1

    const Oem1: Key
    

    The OEM 1 key.

    Source

    Oem2

    const Oem2: Key
    

    The OEM 2 key.

    Source

    Oem3

    const Oem3: Key
    

    The OEM 3 key.

    Source

    Oem4

    const Oem4: Key
    

    The OEM 4 key.

    Source

    Oem5

    const Oem5: Key
    

    The OEM 5 key.

    Source

    Oem6

    const Oem6: Key
    

    The OEM 6 key.

    Source

    Oem7

    const Oem7: Key
    

    The OEM 7 key.

    Source

    Oem102

    const Oem102: Key
    

    The OEM 3 key.

    Source

    DbeAlphanumeric

    const DbeAlphanumeric: Key
    

    The DBE_ALPHANUMERIC key.

    Source

    DbeKatakana

    const DbeKatakana: Key
    

    The DBE_KATAKANA key.

    Source

    OemCopy

    const OemCopy: Key
    

    The OEM Copy key.

    Source

    OemAuto

    const OemAuto: Key
    

    The OEM Auto key.

    Source

    OemEnlw

    const OemEnlw: Key
    

    The OEM ENLW key.

    Source

    DbeRoman

    const DbeRoman: Key
    

    The DBE_ROMAN key.

    Source

    Attn

    const Attn: Key
    

    The ATTN key.

    Source

    DbeEnterWordRegisterMode

    const DbeEnterWordRegisterMode: Key
    

    The DBE_ENTERWORDREGISTERMODE key.

    Source

    DbeEnterImeConfigureMode

    const DbeEnterImeConfigureMode: Key
    

    The DBE_ENTERIMECONFIGMODE key.

    Source

    DbeFlushString

    const DbeFlushString: Key
    

    The DBE_FLUSHSTRING key.

    Source

    DbeCodeInput

    const DbeCodeInput: Key
    

    The DBE_CODEINPUT key.

    Source

    Zoom

    const Zoom: Key
    

    The Zoom key.

    Source

    DbeDetermineString

    const DbeDetermineString: Key
    

    The DBE_DETERMINESTRING key.

    Source

    Pa1

    const Pa1: Key
    

    The PA1 key.

    Source

    value

    const fn value(self: Self) -> i32
    

    The numeric value of the member.

    Source

    from_value

    fn from_value(value: i32) -> Option<Key>
    

    The member with the given numeric value, if one is defined.

    Source

    name

    fn name(self: Self) -> &'static str
    

    The name of the member. For values with several names this is the first one declared.

    Source

    parse

    fn parse(s: &str) -> Result<Key, ParseKeyError>
    

    Parses a member name (ignoring case, aliases included) or the numeric value of a defined member.

    Source

    to_navigation_direction

    fn to_navigation_direction(self: Self, modifiers: KeyModifiers) -> Option<NavigationDirection>
    

    Converts a keypress into a navigation direction, if the key is a navigation key.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.