Showing the changes to libraries/script-engine/src/KeyEvent.cpp (1 of 63 files). Show all
Unified · Split
| @@ -187,7 +187,7 @@ ScriptValue KeyEvent::toScriptValue(ScriptEngine* engine, const KeyEvent& event) · 186 unmodified lines | ||
| 187 | 187 | return obj; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | −void KeyEvent::fromScriptValue(const ScriptValue& object, KeyEvent& event) { | |
| 190 | +bool KeyEvent::fromScriptValue(const ScriptValue& object, KeyEvent& event) { | |
| 191 | 191 | |
| 192 | 192 | event.isValid = false; // assume the worst |
| 193 | 193 | event.isMeta = object.property("isMeta").toVariant().toBool(); |
| @@ -281,6 +281,7 @@ void KeyEvent::fromScriptValue(const ScriptValue& object, KeyEvent& event) { · 87 unmodified lines | ||
| 281 | 281 | } |
| 282 | 282 | event.isValid = true; |
| 283 | 283 | } |
| 284 | + return true; | |
| 284 | 285 | } |
| 285 | 286 | |
| 286 | 287 | ScriptValue isShifted = object.property("isShifted"); |