Changeset 1432 for trunk/autoquest-core-events/src
- Timestamp:
- 03/04/14 12:11:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/gui/KeyInteractionTargetCorrector.java
r927 r1432 52 52 53 53 for (Event event : sequence) { 54 Event nextEvent = event; 54 55 if (event.getTarget() instanceof IGUIElement) { 55 56 if (event.getType() instanceof KeyboardFocusChange) { 56 57 currentKeyboardFocusGUIElement = (IGUIElement) event.getTarget(); 57 event = null;58 nextEvent = null; 58 59 } 59 60 else if (event.getType() instanceof KeyInteraction) { … … 63 64 64 65 if (!currentKeyboardFocusGUIElement.equals(event.getTarget())) { 65 event = new Event(event.getType(), currentKeyboardFocusGUIElement); 66 nextEvent = new Event(event.getType(), currentKeyboardFocusGUIElement); 67 nextEvent.setTimestamp(event.getTimestamp()); 68 69 // TODO copy event parameters 66 70 } 67 71 } 68 72 } 69 73 70 if ( event != null) {71 resultingSequence.add( event);74 if (nextEvent != null) { 75 resultingSequence.add(nextEvent); 72 76 } 73 77 }
Note: See TracChangeset
for help on using the changeset viewer.