<?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>897</bug_id>
          
          <creation_ts>2013-11-06 18:05:46 +0100</creation_ts>
          <short_desc>Missing NEWT input event when focus is lost on canvas while holding a button down</short_desc>
          <delta_ts>2013-11-17 18:47:32 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>awt</component>
          <version>1</version>
          <rep_platform>pc_x86_64</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></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="Jesse">narf_bro</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>narf_bro</cc>
          
          <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>3285</commentid>
    <comment_count>0</comment_count>
    <who name="Jesse">narf_bro</who>
    <bug_when>2013-11-06 18:05:46 +0100</bug_when>
    <thetext>If you redirect focus away from the NewtCanvas while holding a key down, you will lose the next &quot;pressed&quot; event. Easy to reproduce - happens 100%!

1. Focus your canvas
2. Press and hold CTRL (non-key repeat button)
3. Click away from the canvas focusing another window while holding CTRL
4. Release CTRL
5. Focus the canvas
6. Press and hold CTRL - Note that no input event was fired for keyPressed!!
7. Release CTRL - Only the release event comes through.

Expected: When you re-focus the canvas and press CTRL in steps 5 and 6, it should issue a keyPressed event

Note: I agree with the current functionality that it shouldn&apos;t issue the Release CTRL event when the focus is away from the window, but the press event should absolutely be issued!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3338</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-11-17 18:41:08 +0100</bug_when>
    <thetext>NewtCanvas ? NewtCanvasAWT ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3339</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-11-17 18:41:37 +0100</bug_when>
    <thetext>Platform ? Since OSX uses AWT translated events ..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3340</commentid>
    <comment_count>3</comment_count>
    <who name="Jesse">narf_bro</who>
    <bug_when>2013-11-17 18:47:32 +0100</bug_when>
    <thetext>I have only tried it on Windows 7. It&apos;s a NewtCanvasAWT.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>