You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Piotr Kołaczkowski <p....@sages.com.pl> on 2012/01/20 10:40:07 UTC

Window event mappings - KeyReleased -> KeyPressed

Hi,

In current implementation, when I:
1. Press Ctrl
2. Press C
3. Release Ctrl
4. Release C

The event Ctrl-C is *not* fired.

However, this sequence works:
1. Press Ctrl
2. Press C
3. Release C
4. Release Ctrl

Confusing as hell, got me a half an hour to check why sometimes my 
keyboard shortcuts get fired and sometimes not.

Why are events generated in keyReleased and not keyPressed?
Patch attached.

Regards,
Piotr

-- 
Piotr Kołaczkowski
senior consultant
Sages Sp. z o.o.
www.sages.com.pl


Re: Window event mappings - KeyReleased -> KeyPressed

Posted by Noel Grandin <no...@gmail.com>.
thanks, committed.

On 2012-01-20 11:40, Piotr Kołaczkowski wrote:
> Press Ctrl
> 2. Press C
> 3. Release Ctrl
> 4. Release C