Bug 784 - F10 Key in windows does not send WM_KEYDOWN
Summary: F10 Key in windows does not send WM_KEYDOWN
Status: RESOLVED FIXED
Alias: None
Product: Newt
Classification: JogAmp
Component: windows (show other bugs)
Version: 1
Hardware: pc_all windows
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2013-07-15 23:30 CEST by MarkT
Modified: 2013-07-16 00:00 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MarkT 2013-07-15 23:30:18 CEST
See Remarks at:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646280(v=vs.85).aspx

If the F10 key is pressed, the DefWindowProc function sets an internal flag. When DefWindowProc receives the WM_KEYUP message, the function checks whether the internal flag is set and, if so, sends a WM_SYSCOMMAND message to the top-level window. The WM_SYSCOMMAND parameter of the message is set to SC_KEYMENU.

Tested solution:
WindowsWindow.c 

Line 838:

+ case WM_SYSKEYDOWN:
    case WM_KEYDOWN:

This will cause the key to be detected, also:

+ case WM_SYSKEYUP:
    case WM_KEYUP:

is needed for the opposite case.
Comment 1 MarkT 2013-07-16 00:00:57 CEST
Fixed on Oct 2012., code was old.