Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::KeyShortcut Struct Reference

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

Detailed Description

A keyboard shortcut (key + modifiers).

Member Function Documentation

◆ from_string()

KeyShortcut pulp::view::KeyShortcut::from_string ( const std::string & s)
static

Create from string like "Cmd+S", "Ctrl+Shift+Z", "F5".

◆ matches()

bool pulp::view::KeyShortcut::matches ( const KeyEvent & event) const
inline

◆ to_string()

std::string pulp::view::KeyShortcut::to_string ( ) const

Convert to display string.

Member Data Documentation

◆ key

KeyCode pulp::view::KeyShortcut::key = KeyCode::unknown

◆ modifiers

uint16_t pulp::view::KeyShortcut::modifiers = 0

The documentation for this struct was generated from the following file: