MCPcopy Create free account
hub / github.com/Skycoder42/QHotkey / nativeEventFilter

Method nativeEventFilter

QHotkey/qhotkey_win.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45bool QHotkeyPrivateWin::nativeEventFilter(const QByteArray &eventType, void *message, _NATIVE_EVENT_RESULT *result)
46{
47 Q_UNUSED(eventType)
48 Q_UNUSED(result)
49
50 MSG* msg = static_cast<MSG*>(message);
51 if(msg->message == WM_HOTKEY) {
52 QHotkey::NativeShortcut shortcut = {HIWORD(msg->lParam), LOWORD(msg->lParam)};
53 this->activateShortcut(shortcut);
54 this->polledShortcut = shortcut;
55 this->pollTimer.start();
56 }
57
58 return false;
59}
60
61void QHotkeyPrivateWin::pollForHotkeyRelease()
62{

Callers

nothing calls this directly

Calls 1

activateShortcutMethod · 0.80

Tested by

no test coverage detected