Added the ability to bypass any defined actions by using ctrl when clicking the tray icon

This commit is contained in:
JamesAC 2011-09-03 14:29:17 +00:00
parent 6366233d66
commit aa45f4fc7b

View File

@ -583,7 +583,8 @@ LRESULT CALLBACK CTrayWindow::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
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);
}