mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-25 01:27:59 +08:00
f647223e94
* [Shortcut Guide] Activate with Windows key press * fix spellchecker * pr comments: fix search and add lock * Add activation method combo box * fix spellchecker issue for customized * Standardize centralized hotkeys file names * Add warning when using the long win key method * Address PR feedback on text * More PR feedback
16 lines
600 B
C++
16 lines
600 B
C++
#include "pch.h"
|
|
|
|
#include "../modules/interface/powertoy_module_interface.h"
|
|
|
|
namespace CentralizedKeyboardHook
|
|
{
|
|
using Hotkey = PowertoyModuleIface::Hotkey;
|
|
|
|
void Start() noexcept;
|
|
void Stop() noexcept;
|
|
void SetHotkeyAction(const std::wstring& moduleName, const Hotkey& hotkey, std::function<bool()>&& action) noexcept;
|
|
void AddPressedKeyAction(const std::wstring& moduleName, const DWORD vk, const UINT milliseconds, std::function<bool()>&& action) noexcept;
|
|
void ClearModuleHotkeys(const std::wstring& moduleName) noexcept;
|
|
void RegisterWindow(HWND hwnd) noexcept;
|
|
};
|