Molybden API
Loading...
Searching...
No Matches
molybden::Shortcut Struct Reference

A combination of a key code and modifier keys, such as Shift, Alt, etc. More...

#include <shortcut.hpp>

Public Member Functions

 Shortcut (KeyCode key=KeyCode::UNKNOWN, int32_t modifiers=0)
 

Public Attributes

KeyCode key = KeyCode::UNKNOWN
 
int32_t modifiers
 

Detailed Description

A combination of a key code and modifier keys, such as Shift, Alt, etc.

This structure is used to define keyboard shortcuts. For example, to create a shortcut that corresponds to Command+Shift+P on macOS and Control+Shift+P on other platforms, you would use:

Shortcut(KeyCode::P, KeyModifier::SHIFT | KeyModifier::COMMAND_OR_CTRL);
A combination of a key code and modifier keys, such as Shift, Alt, etc.
Definition shortcut.hpp:25

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