<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>784</bug_id>
          
          <creation_ts>2013-07-15 23:30:18 +0200</creation_ts>
          <short_desc>F10 Key in windows does not send WM_KEYDOWN</short_desc>
          <delta_ts>2013-07-16 00:00:57 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>windows</component>
          <version>1</version>
          <rep_platform>pc_all</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="MarkT">nightst4r</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2808</commentid>
    <comment_count>0</comment_count>
    <who name="MarkT">nightst4r</who>
    <bug_when>2013-07-15 23:30:18 +0200</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2809</commentid>
    <comment_count>1</comment_count>
    <who name="MarkT">nightst4r</who>
    <bug_when>2013-07-16 00:00:57 +0200</bug_when>
    <thetext>Fixed on Oct 2012., code was old.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>