ShellView>>preTranslateKeyboardInput: question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ShellView>>preTranslateKeyboardInput: question

Costas
Hi,

I found the following comment in the message:

------------------------------------------------------------------------------------------
ShellView>>preTranslateKeyboardInput: aMSG
        "Answer whether the receiver would like to consume the
argument aMSG, which is a keyboard message.Implementation Note: If
IsDialogMessage() is not sent here (which consumes
WM_KEYDOWN(VK_TAB,...) messages) then double tabs will appear
in edit controls when the tab key is pressed. This can be fixed by:
                1) Implementing WinEdit>>wmKeyDown: to ignore VK_TAB,
or;
                2) removing the special handling in WinEdit>>wmChar:.
        Also VK_ESCAPE is not passed to IsDialogMessage()) because
this would be interpreted as a request to close the window."
------------------------------------------------------------------------------------------

It mentions that you can edit WinEdit>>wmKeyDown: to fix the VK_TAB
double problem. Does anyone know here class WinEdit is? I can't find
it. Also why does the VK_TAB message come here twice?

Regards,

Costas