mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added the ability to bypass any defined actions by using ctrl when clicking the tray icon
This commit is contained in:
parent
6366233d66
commit
aa45f4fc7b
@ -583,7 +583,8 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bang.empty())
|
if (!(GetKeyState(VK_CONTROL) & 0x80) && // Ctrl is pressed, so only run default action
|
||||||
|
!bang.empty())
|
||||||
{
|
{
|
||||||
Rainmeter->ExecuteCommand(bang.c_str(), NULL);
|
Rainmeter->ExecuteCommand(bang.c_str(), NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user