# Enum `kurogane::Key`

```rust
#[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`

```rust
Char(char)
```

A letter key, as its uppercase ASCII letter.

### `Digit`

```rust
Digit(u8)
```

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

### `F`

```rust
F(u8)
```

A function key, F1 to F24.

### `Escape`

```rust
Escape
```

### `Enter`

```rust
Enter
```

### `Tab`

```rust
Tab
```

### `Space`

```rust
Space
```

### `Backspace`

```rust
Backspace
```

### `Delete`

```rust
Delete
```

### `Insert`

```rust
Insert
```

### `Home`

```rust
Home
```

### `End`

```rust
End
```

### `PageUp`

```rust
PageUp
```

### `PageDown`

```rust
PageDown
```

### `ArrowUp`

```rust
ArrowUp
```

### `ArrowDown`

```rust
ArrowDown
```

### `ArrowLeft`

```rust
ArrowLeft
```

### `ArrowRight`

```rust
ArrowRight
```

### `Other`

```rust
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

- `impl Clone for Key`
- `impl Copy for Key`
- `impl Debug for Key`
- `impl Eq for Key`
- `impl Hash for Key`
- `impl PartialEq for Key`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/keys.rs#L104
