History

Fixes to most scripting-related warnings

ksuprynowicz committed 4 years ago

Commit 6f321731 parent a14c64435 files · +195 −149Browse files

Showing the changes to libraries/script-engine/src/KeyEvent.cpp (1 of 35 files). Show all

Unified · Split

libraries/script-engine/src/KeyEvent.cpp+2−0
@@ -4,6 +4,7 @@ · 3 unmodified lines
44 //
55 // Created by Stephen Birarda on 2014-10-27.
66 // Copyright 2014 High Fidelity, Inc.
7+// Copyright 2022 Overte e.V.
78 //
89 // Distributed under the Apache License, Version 2.0.
910 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@@ -311,5 +312,6 @@ bool KeyEvent::fromScriptValue(const ScriptValue& object, KeyEvent& event) { · 301 unmodified lines
311312 << " event.isKeypad=" << event.isKeypad
312313 << " event.isAutoRepeat=" << event.isAutoRepeat;
313314 }
315+ return event.isValid;
314316 }
315317