5#ifndef MOLYBDEN_GLOBAL_SHORTCUTS_HPP
6#define MOLYBDEN_GLOBAL_SHORTCUTS_HPP
10#include "molybden/shortcuts/shortcut.hpp"
40 std::function<
void(
const Shortcut&)> handler) = 0;
Allows handling global keyboard shortcuts in the application.
Definition global_shortcuts.hpp:21
virtual void unregisterShortcut(const Shortcut &shortcut)=0
Unregisters a previously registered shortcut.
virtual bool registerShortcut(const Shortcut &shortcut, std::function< void(const Shortcut &)> handler)=0
Registers a global shortcut along with a handler function to be executed when the shortcut is activat...
A combination of a key code and modifier keys, such as Shift, Alt, etc.
Definition shortcut.hpp:25