A keyboard shortcut (key + modifiers). More...
#include <app_framework.hpp>
Public Member Functions | |
| bool | matches (const KeyEvent &event) const |
| std::string | to_string () const |
| Convert to display string. | |
Static Public Member Functions | |
| static KeyShortcut | from_string (const std::string &s) |
| Create from string like "Cmd+S", "Ctrl+Shift+Z", "F5". | |
Public Attributes | |
| KeyCode | key = KeyCode::unknown |
| uint16_t | modifiers = 0 |
A keyboard shortcut (key + modifiers).
|
static |
Create from string like "Cmd+S", "Ctrl+Shift+Z", "F5".
|
inline |
| std::string pulp::view::KeyShortcut::to_string | ( | ) | const |
Convert to display string.
| KeyCode pulp::view::KeyShortcut::key = KeyCode::unknown |
| uint16_t pulp::view::KeyShortcut::modifiers = 0 |