Hi everyone
,
I've been working on a little script for the past few days and I've got a little problem. I'm catching the TAB (keyCode == 0x09) key within OnEvent_ChatWndEditKeyDown, and that works pretty well, but I'd also like to inhibit the default behaviour of the key (which will transfer the focus to the next control in the chat window right after OnEvent_ChatWndEditKeyDown is executed).
I'm quite a newbie when it comes to Windows API, so I've got no idea whether it's possible or not (that would be done through the InterOp object, I guess).
Another solution I was thinking about was to simulate a "shift+TAB" in the OnEvent_ChatWndEditKeyDown function, so that the actual TAB just reverses the focus back to the edit area. If that makes sense. That'd be quite tricky but oh well, anything would be fine.
Anyone have an idea?
edit: of course, I've tried returning true within OnEvent_ChatWndEditKeyDown. Doesn't work with TAB though.