---
title: "slint::platform::key_codes Namespace"
---
This namespace contains constants for each special non-printable key.

Each constant can be converted to [SharedString](../../sharedstring/). The constants are meant to be used with the [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event) and [slint::Window::dispatch\_key\_release\_event()](../../window/#dispatch_key_release_event) functions.

Example:

```cpp
window.dispatch_key_press_event(slint::platform::key_codes::Tab);
```

## Variables

### `Backspace`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Backspace
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Tab`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Tab
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Return`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Return
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Escape`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Escape
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Backtab`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Backtab
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Delete`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Delete
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Shift`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Shift
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Control`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Control
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Alt`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Alt
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `AltGr`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::AltGr
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `CapsLock`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::CapsLock
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `ShiftR`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::ShiftR
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `ControlR`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::ControlR
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Meta`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Meta
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `MetaR`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::MetaR
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Space`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Space
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `UpArrow`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::UpArrow
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `DownArrow`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::DownArrow
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `LeftArrow`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::LeftArrow
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `RightArrow`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::RightArrow
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F1`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F1
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F2`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F2
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F3`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F3
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F4`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F4
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F5`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F5
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F6`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F6
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F7`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F7
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F8`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F8
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F9`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F9
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F10`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F10
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F11`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F11
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F12`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F12
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F13`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F13
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F14`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F14
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F15`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F15
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F16`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F16
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F17`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F17
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F18`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F18
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F19`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F19
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F20`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F20
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F21`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F21
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F22`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F22
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F23`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F23
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F24`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F24
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Insert`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Insert
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Home`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Home
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `End`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::End
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `PageUp`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::PageUp
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `PageDown`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::PageDown
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `ScrollLock`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::ScrollLock
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Pause`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Pause
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `SysReq`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::SysReq
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Stop`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Stop
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Menu`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Menu
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Back`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Back
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `A`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::A
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `B`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::B
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `C`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::C
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `D`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::D
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `E`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::E
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `F`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::F
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `G`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::G
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `H`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::H
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `I`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::I
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `J`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::J
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `K`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::K
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `L`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::L
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `M`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::M
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `N`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::N
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `O`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::O
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `P`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::P
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Q`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Q
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `R`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::R
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `S`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::S
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `T`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::T
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `U`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::U
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `V`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::V
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `W`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::W
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `X`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::X
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Y`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Y
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Z`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Z
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit0`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit0
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit1`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit1
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit2`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit2
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit3`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit3
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit4`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit4
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit5`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit5
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit6`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit6
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit7`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit7
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit8`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit8
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Digit9`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Digit9
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Circumflex`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Circumflex
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Exclamation`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Exclamation
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `DoubleQuote`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::DoubleQuote
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Hash`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Hash
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Dollar`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Dollar
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Percent`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Percent
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Ampersand`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Ampersand
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Underscore`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Underscore
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `OpenParen`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::OpenParen
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `CloseParen`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::CloseParen
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Asterisk`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Asterisk
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Plus`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Plus
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Pipe`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Pipe
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `HyphenMinus`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::HyphenMinus
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `OpenCurlyBracket`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::OpenCurlyBracket
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `CloseCurlyBracket`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::CloseCurlyBracket
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Tilde`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Tilde
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Colon`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Colon
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Semicolon`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Semicolon
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `LessThan`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::LessThan
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Equals`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Equals
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `GreaterThan`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::GreaterThan
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `QuestionMark`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::QuestionMark
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `At`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::At
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Comma`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Comma
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Period`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Period
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Slash`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Slash
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `BackQuote`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::BackQuote
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `OpenBracket`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::OpenBracket
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `BackSlash`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::BackSlash
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `CloseBracket`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::CloseBracket
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)

### `Quote`

```cpp
constexpr constexpr std::u8string_view std::u8string_view slint::platform::key_codes::Quote
```

A constant that represents the key code to be used in [slint::Window::dispatch\_key\_press\_event()](../../window/#dispatch_key_press_event)