Bug 784

Summary: F10 Key in windows does not send WM_KEYDOWN
Product: [JogAmp] Newt Reporter: MarkT <nightst4r>
Component: windowsAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: 1   
Hardware: pc_all   
OS: windows   
Type: --- SCM Refs:
Workaround: ---

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.