Keyboard.isKeyDown returns an incorrect value

Started by Orkel, June 15, 2013, 00:43:12

Previous topic - Next topic

Orkel

If I have a key down while a modal window(in my case, a JOptionPane window) showed up, Keyboard.isKeyDown(that key) will return true until I press and release that button again.

I have tried to resolve this with Keyboard.destroy() and immediately calling Keyboard.create() but its not helping.

How do I resolve this?

Using Sys.alert solved this problem, but the method is not powerful enough. I need to customize the button names and the pressed button returned(some kind of index).