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 } -
trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/sequences/CMDcorrectTabKeyNavigationOrder.java
r1316 r1432 119 119 while (index < sequence.size()) { 120 120 if (mustCorrectTabKeyNavigationOrder(sequence, index)) { 121 result.add(sequence.get(index + 1)); 122 result.add(sequence.get(index)); 121 Event event1 = sequence.get(index); 122 Event event2 = sequence.get(index + 1); 123 124 // switch timestamps 125 long timestamp1 = event1.getTimestamp(); 126 event1.setTimestamp(event2.getTimestamp()); 127 event2.setTimestamp(timestamp1); 128 129 // change order of events 130 result.add(event2); 131 result.add(event1); 132 123 133 index += 2; 124 134 }
Note: See TracChangeset
for help on using the changeset viewer.