use of limelight.ui.events.panel.KeyReleasedEvent in project limelight by slagyr.
the class StageKeyListenerTest method focuedPanelReceivesReleaseKeyEvents.
@Test
public void focuedPanelReceivesReleaseKeyEvents() throws Exception {
panel.getEventHandler().add(KeyReleasedEvent.class, action);
listener.focusOn(panel);
final KeyEvent releasedEvent = new KeyEvent(component, 1, 2, 3, KeyEvent.VK_B, 'c');
listener.keyReleased(releasedEvent);
KeyReleasedEvent keyEvent1 = (KeyReleasedEvent) action.event;
assertSame(panel, keyEvent1.getSource());
assertEquals(limelight.ui.events.panel.KeyEvent.KEY_B, keyEvent1.getKeyCode());
}
Aggregations