22 bool disableAllHotkeys();
23 bool restoreAllHotkeys();
24 bool isDisabled()
const {
return m_hotkeysDisabled; }
27 bool disableWindowsKey();
28 bool enableWindowsKey();
31 bool disableTaskManager();
32 bool enableTaskManager();
35 bool nativeEventFilter(
const QByteArray &eventType,
void *message, qintptr *result)
override;
38 void hotkeyPressed(
int keyCode,
const QString &keyName);
39 void hotkeyBlocked(
int keyCode,
const QString &keyName);
40 void statusChanged(
bool disabled);
43 void initializeKeys();
44 bool setKeyboardHook();
45 bool removeKeyboardHook();
46 static LRESULT CALLBACK keyboardProc(
int nCode, WPARAM wParam, LPARAM lParam);
49 bool m_hotkeysDisabled =
false;
50 bool m_keyboardHooked =
false;
53 HHOOK m_keyboardHook =
nullptr;
54 QHash<int, QString> m_keyNames;
57 QHash<QString, QVariant> m_registryBackup;