From 0352904ec175216e7fdc4138f6aa3bcd7f0250b1 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Sat, 23 May 2020 07:46:08 +0200 Subject: [PATCH] Fix not declared MOD_NOREPEAT (Skycoder42/QHotkey/#36) (#37) Fix not declared MOD_NOREPEAT (#36) --- QHotkey/qhotkey_win.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/QHotkey/qhotkey_win.cpp b/QHotkey/qhotkey_win.cpp index 19712db..244ed51 100644 --- a/QHotkey/qhotkey_win.cpp +++ b/QHotkey/qhotkey_win.cpp @@ -6,6 +6,10 @@ #define HKEY_ID(nativeShortcut) (((nativeShortcut.key ^ (nativeShortcut.modifier << 8)) & 0x0FFF) | 0x7000) +#if !defined(MOD_NOREPEAT) +#define MOD_NOREPEAT 0x4000 +#endif + class QHotkeyPrivateWin : public QHotkeyPrivate { public: