Menu

Enum

Key

kurogane::KeySource
#[non_exhaustive] pub enum Key { Char(char), Digit(u8), F(u8), Escape, Enter, Tab, Space, Backspace, Delete, Insert, Home, End, PageUp, PageDown, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Other(u32), }

A key by its place on the keyboard rather than what it types. Shift+W and W are both Key::Char('W').

Variants

#Char(char)

A letter key, as its uppercase ASCII letter.

#Digit(u8)

A digit key of the top row, 0 to 9.

#F(u8)

A function key, F1 to F24.

#Escape

#Enter

#Tab

#Space

#Backspace

#Delete

#Insert

#Home

#End

#PageUp

#PageDown

#ArrowUp

#ArrowDown

#ArrowLeft

#ArrowRight

#Other(u32)

Any other key by its Windows virtual-key code, which CEF uses on every platform. Such keys are punctuation (whose code depends on the keyboard layout), the keypad and the modifier keys themselves.

Trait implementations