<?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>1092</bug_id>
          
          <creation_ts>2014-10-09 17:49:04 +0200</creation_ts>
          <short_desc>Strange behaviour with keyPressed and keyReleased</short_desc>
          <delta_ts>2014-10-16 16:14:51 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>2</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="Giuseppe Barbieri">elect86</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>sgothel</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>4370</commentid>
    <comment_count>0</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2014-10-09 17:49:04 +0200</bug_when>
    <thetext>Sometimes I experience a strange behaviour.

I created a simple test scenario for this: 
https://github.com/elect86/KeyListenerScenario

Play with the ctrl+o combination to open the jFileChooser.

Most of time it works as supposed:

keyPressed 17
keyPressed 79
fileChooser opens
fileChooser closed

That is the ctrl-keyPressed is triggered, then the o-keyPressed, fileChooser opens and then I close it.

Sometimes instead I get this

keyReleased 79
keyReleased 17
keyReleased 79

That is no keyPressed, only keyReleased, one of them doubled.

In order to make it happen try to press them together and then keep them pressed for a while and then release the ctrl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4373</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-10-10 11:07:10 +0200</bug_when>
    <thetext>thank you for reporting, if anyhow possible,
please add a small unit test.

you may copy one of ours here,
as we do have a few NEWT KeyEvent tests available.

if that is not possible, a small standalone demo
would do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4390</commentid>
    <comment_count>2</comment_count>
    <who name="Giuseppe Barbieri">elect86</who>
    <bug_when>2014-10-16 16:14:51 +0200</bug_when>
    <thetext>(In reply to comment #1)
&gt; thank you for reporting, if anyhow possible,
&gt; please add a small unit test.
&gt; 
&gt; you may copy one of ours here,
&gt; as we do have a few NEWT KeyEvent tests available.
&gt; 
&gt; if that is not possible, a small standalone demo
&gt; would do it.

(In reply to comment #1)
&gt; thank you for reporting, if anyhow possible,
&gt; please add a small unit test.
&gt; 
&gt; you may copy one of ours here,
&gt; as we do have a few NEWT KeyEvent tests available.
&gt; 
&gt; if that is not possible, a small standalone demo
&gt; would do it.


The small unit test is at the github link</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>