Try using:
code:
function OnEvent_ChatWndEditKeyDown(ChatWnd, KeyCode, CtrlKeyDown, ShiftKeyDown){
if(KeyCode==0x09){
KeyCode=0; //also try null or another value
}
}
Tested it myself
I think Windows determines the function of the tab key and so you cannot stop it from sending the "TAB" message. It does say on MSDN that the tab key cannot be used as a hotkey, quite possibly for this reason
BTW - You should also check the state of CtrlKeyDown and ShiftKeyDown so you don't block Ctrl+Key or Shift+Key (if you don't already
)