From aa45f4fc7b13dbef9fcaa2367361497d5cec8dc9 Mon Sep 17 00:00:00 2001 From: JamesAC Date: Sat, 3 Sep 2011 14:29:17 +0000 Subject: [PATCH] Added the ability to bypass any defined actions by using ctrl when clicking the tray icon --- Library/TrayWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/TrayWindow.cpp b/Library/TrayWindow.cpp index 80f454ab..0efa2361 100644 --- a/Library/TrayWindow.cpp +++ b/Library/TrayWindow.cpp @@ -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); }