X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fwm_hotkeys.c;h=e18f44c83c04a8106e5d46534f7e4a307fbb04d5;hb=98bd9c0c8985c50c42231c116a4e18fedd47761e;hp=2a93b541a13af7aa2288f7d9cc691eb0a5db11b8;hpb=9b918b912e6cb7b2f0267b6da9d700b4e94abfd3;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c b/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c index 2a93b541..e18f44c8 100644 --- a/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c +++ b/Usermode/Applications/axwin3_src/WM/wm_hotkeys.c @@ -41,9 +41,7 @@ void WM_Hotkey_Register(int nKeys, uint32_t *Keys, const char *ActionName) strcpy((char*)h->Target, ActionName); memcpy(h->Keys, Keys, nKeys * sizeof(uint32_t)); - h->Next = NULL; - if( gpWM_Hotkeys ) - gpWM_Hotkeys->Next = h; + h->Next = gpWM_Hotkeys; gpWM_Hotkeys = h; } @@ -102,7 +100,7 @@ void WM_Hotkey_KeyUp(uint32_t Scancode) if( _IsKeySet(hk->Keys[i]) ) continue ; break; } - _SysDebug("%i/%i satisfied for %s", i, hk->nKeys, hk->Target); + //_SysDebug("%i/%i satisfied for %s", i, hk->nKeys, hk->Target); if( i != hk->nKeys ) continue ;