Re: Intercept TAB key
- Posted by DerekParnell (admin) Sep 19, 2011
- 1236 views
lpuster said...
I am using Win32Lib and Euphoria 3.1.1. While typing in an EditText or MleEdit control, the tab key inserts a tab code (9) into the text. I want to intercept the keystroke and setFocus to the next field instead. w32HKeyDown almost works, but the tab key has already placed the code in the text! Documentation seems to say that returnValue(-1) will "cause the application to ignore the keystroke" but the code goes into the text anyway.
The trick of using returnValue(-1) only works for the w32HKeyPress handler. It does not work for the w32HKeyDown handler.