Re: keyReleased keyPressed problem
Posted by
Sven Gothel on
Oct 09, 2014; 12:19pm
URL: https://forum.jogamp.org/keyReleased-keyPressed-problem-tp4033288p4033293.html
On 10/09/2014 09:20 AM, elect [via jogamp] wrote:
> Sven Gothel wrote
> KeyListener ?
>
> Yeah, sorry, I meant the keyListener
>
> Sven Gothel wrote
> you mean 'isAutoRepeat()' of NEWT KeyEvent ?
>
> So you are saying, you experience an auto-repeated 'CTRL-O'
> from AWT, but the NEWT KeyEvent shows them as being
> not auto-repeat?
>
> ~Sven
>
> No, I try to be clearer
>
> Take a look to this output
>
> keyPressed 17 (keyPressed - ctrl)
> List of pressed inputs
> ctrl
> keyPressed 79 (keyPressed - o)
> List of pressed inputs
> ctrl
> o
> keyReleased 17 (keyReleased - ctrl)
> 2014.10.08, 16:44:32 [INFORMATION] Open a project ...
> (the fileChooser is opened)
> 2014.10.08, 16:44:32 [INFORMATION] Opening file chooser for load.
> 2014.10.08, 16:44:33 [INFORMATION] User clicked 'cancel' in file chooser
> dialog. (I pressed esc to close it, then I will press again ctrl+o
> combination)
> List of pressed inputs
> keyPressed 17 (keyPressed - ctrl)
> List of pressed inputs
> ctrl
> keyReleased 79 (keyReleased - o)
> keyReleased 17 (keyReleased - ctrl)
> keyReleased 79 (keyReleased - o)
>
> As you can see, before the fileChooser is opened, a keyReleased-o is missing.
> When I press again the combination, only the keyPressed-ctrl will be
> triggered, no keyPressed-o. Moreover there is a double keyReleased-o.
Events are coming from AWT, being transcoded to NEWT events right ?
Can you produce a small unit test reproducing this issue ?
(Copy one of ours and patch it please)
Please open a new bug report with your description
and said unit test - that would be very helpful.
Thank you.
~Sven