Skip to content

Instantly share code, notes, and snippets.

@k-tsj
Created January 14, 2013 04:05
Show Gist options
  • Save k-tsj/4527691 to your computer and use it in GitHub Desktop.
Save k-tsj/4527691 to your computer and use it in GitHub Desktop.
yamy-0.03-alt-tab.patch
diff --git a/hook.cpp b/hook.cpp
index 98b585d..b9a994f 100644
--- a/hook.cpp
+++ b/hook.cpp
@@ -810,6 +810,9 @@ static LRESULT CALLBACK lowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lP
if (g.m_keyboardDetour && g.m_engine) {
unsigned int result;
+ if (nCode == HC_ACTION && pKbll->vkCode == VK_TAB && pKbll->flags & LLKHF_ALTDOWN) {
+ goto through;
+ }
result = g.m_keyboardDetour(g.m_engine, wParam, lParam);
if (result) {
return 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment