| 43 | } |
| 44 | |
| 45 | bool 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 | |
| 61 | void QHotkeyPrivateWin::pollForHotkeyRelease() |
| 62 | { |
nothing calls this directly
no test coverage detected