5#ifndef MOBROWSER_GLOBAL_SHORTCUTS_HPP
6#define MOBROWSER_GLOBAL_SHORTCUTS_HPP
10#include "mobrowser/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 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...
virtual void unregisterShortcut(const Shortcut &shortcut)=0
Unregisters a previously registered shortcut.
A combination of a key code and modifier keys, such as Shift, Alt, etc.
Definition shortcut.hpp:25