Possible KeyEvent bug

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible KeyEvent bug

Mike
This post was updated on .
My keyPressed(KeyEvent e) input listener seems to miss certain key press events.

I can most reliably reproduce it by pressing and holding down VK_RIGHT, then pressing VK_UP. The initial VK_UP pressed event never fires. Although subsequent VK_UP auto-repeat will fire. This seems to happen with any Action Key event.

This is problematic if i am filtering my events with !e.isAutoRepeat().

Im not sure if this is some keyboard limitation i am unaware of, or some corner case that is working as intended.

Slightly related question: Are keys like backspace, tab, and enter supposed to be non-printable keys? It seems like they should be printable.

~Mike
Reply | Threaded
Open this post in threaded view
|

Re: Possible KeyEvent bug

Xerxes Rånby
Are you using NEWT or AWT to do input?
If you are using AWT you will have to contact your JRE vendor.
If you have issues while using NEWT then please tell which platform and OS you are using.
http://jogamp.org/jogl/doc/NEWT-Overview.html
Reply | Threaded
Open this post in threaded view
|

Re: Possible KeyEvent bug

gouessej
Administrator
In reply to this post by Mike
Mike probably uses NEWT as isAutoRepeat() isn't implemented in AWT.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Possible KeyEvent bug

Mike
In reply to this post by Xerxes Rånby
My bad. I'm using NEWT running the Jun 22 2013 nightly build of Jogl. Using windows 7.
Reply | Threaded
Open this post in threaded view
|

Re: Possible KeyEvent bug

Sven Gothel
Administrator
In reply to this post by Mike
On 06/23/2013 08:04 PM, Mike [via jogamp] wrote:
> My keyPressed(KeyEvent e) input listener seems to miss certain key press events.
>
> I can most reliably reproduce it by pressing and holding down VK_RIGHT, then
> pressing VK_UP. The initial VK_UP pressed event never fires. Although
> subsequent VK_UP auto-repeat will fire. This seems to happen with any Action
> Key event.
>
> This is problematic if i am filtering my events with !e.isAutoRepeat().
>

Thank you!

Pls file a bug report, incl. your OS and Java version .. etc.

If you can - maybe even a unit test
while copying one of our existent NEWT*Key* tests ..

> Im not sure if this is some keyboard limitation i am unaware of, or some
> corner case that is working as intended.

I haven't tested such combination either,
but a unit test will show us.

If it's working in general w/ a native application
on your platform - it should work w/ NEWT.


~Sven

>
> ~Mike


signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Possible KeyEvent bug

Mike
I will file the bug report when I get home.

One more question. Are keys like backspace, tab, and enter supposed to be non-printable keys? It seems like they should be printable. I have a text editor implemented through NEWT and it pipes all printable key events to a file. So it would be nice if whitespace keys were marked as printable.

Thanks for the help
Reply | Threaded
Open this post in threaded view
|

Re: Possible KeyEvent bug

Sven Gothel
Administrator
On 06/24/2013 11:04 PM, Mike [via jogamp] wrote:
> I will file the bug report when I get home.
>
> One more question. Are keys like backspace, tab, and enter supposed to be
> non-printable keys? It seems like they should be printable. I have a text
> editor implemented through NEWT and it pipes all printable key events to a
> file. So it would be nice if whitespace keys were marked as printable.
>

Good point, I just crossed this issue as well,
but was undecided.

Pls file another short bug report for documentation,
will change it.

~Sven



signature.asc (911 bytes) Download Attachment