JMECanvas and keyboard input

Hi!



I've tried to modify the JMESwingTest example from the jmetest.util package this way:



from


            input.addAction( new InputAction() {
                public void performAction( InputActionEvent evt ) {
                    logger.info( evt.getTriggerName() );
                }
            }, InputHandler.DEVICE_MOUSE, InputHandler.BUTTON_ALL, InputHandler.AXIS_NONE, false );



to


            input.addAction( new InputAction() {
                public void performAction( InputActionEvent evt ) {
                    logger.info( evt.getTriggerName() );
                }
            }, InputHandler.DEVICE_KEYBOARD, KeyInput.KEY_SPACE, InputHandler.AXIS_NONE, false );



and it doesn't have any effect. The same input handler works if Swing integration is not used.
What am I doing wrong?


Regards,
Ovidiu

im having the same problem, any solution??  :?

take a look here:

http://www.jmonkeyengine.com/jmeforum/index.php?topic=7248.0



that thread covers the same problem. but no solution yet.