Re: NEWT key pressed event sended twice for some keys
Posted by
Sven Gothel on
Jul 04, 2013; 11:25am
URL: https://forum.jogamp.org/NEWT-key-pressed-event-sended-twice-for-some-keys-tp4029506p4029514.html
On 07/03/2013 09:12 PM, jouvieje [via jogamp] wrote:
> I'm using lastest 2.0.2 rc12 on windows 7 x64.
>
> There is a problem with auto-repeat for the arrow keys (left, up, down, right)
> in newt. When one of these keys is pressed and release quickly (so the key
> auto-repeated should not appear), the events received by newt are:
> 1) pressed at t0
> 2) pressed at t1 with modifier autorepeat mask
> 3) released at t1
> Obviously, the event 2 should not be send by newt in this case.
>
> This only happens with arrow keys, and other keys does not receives this extra
> pressed event.
> As far as I can see, this extra event is send by WindowDriver.sendKeyEvent,
> and by breakpointing, both WindowDriver.repeatKey and keyCode being 0 (ie
> VK_UNDEFINED).
> This bug therefore exists for all other key event with an undefined keyCode
> (page up, ...).
> Jérôme
Is fixed and commented inhttps://jogamp.org/bugzilla/show_bug.cgi?id=766.
~Sven