Changeset 1250 for trunk/autoquest-plugin-html/src/main/java/de
- Timestamp:
- 07/04/13 16:22:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/eventcore/HTMLEventTypeFactory.java
r1247 r1250 20 20 import de.ugoe.cs.autoquest.eventcore.IEventType; 21 21 import de.ugoe.cs.autoquest.eventcore.gui.IInteraction; 22 import de.ugoe.cs.autoquest.eventcore.gui.KeyPressed; 22 23 import de.ugoe.cs.autoquest.eventcore.gui.KeyboardFocusChange; 23 24 import de.ugoe.cs.autoquest.eventcore.gui.MouseButtonInteraction; … … 33 34 import de.ugoe.cs.autoquest.eventcore.guimodel.ITextArea; 34 35 import de.ugoe.cs.autoquest.eventcore.guimodel.ITextField; 36 import de.ugoe.cs.autoquest.keyboardmaps.VirtualKey; 35 37 import de.ugoe.cs.util.console.Console; 36 38 … … 112 114 } 113 115 } 116 else if ("onkeydown".equals(eventName)) { 117 try { 118 int key = Integer.parseInt(eventParameters.get("key")); 119 result = new KeyPressed(VirtualKey.valueOf(key)); 120 } 121 catch (NumberFormatException e) { 122 throw new IllegalArgumentException("the key id provided by an " + eventName + 123 " is no correct integer"); 124 } 125 } 114 126 else if ("onfocus".equals(eventName)) { 115 127 result = new KeyboardFocusChange();
Note: See TracChangeset
for help on using the changeset viewer.