I would like to use the ESC-key as shortcut for closing a SDI application with a single edit control in the client area (the application is a simple text editor).
I have tried to use WM_KEYDOWN and WM_CHAR messages, but it seems that these messages are never send. Any key pressed generates a WM_COMMAND message. Even when focus is on the menu and I press a key, the WM_KEYDOWN message is still not send.
Am I missing something here?