History

Code tidy

David Rowe committed 12 years ago

Commit 0fdcf381 parent c6463ab1 file · +1 −4Browse files

Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

interface/src/scripting/ControllerScriptingInterface.cpp+1−4
@@ -213,10 +213,7 @@ bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const { · 212 unmodified lines
213213
214214 bool ControllerScriptingInterface::isKeyCaptured(const KeyEvent& event) const {
215215 // if we've captured some combination of this key it will be in the map
216− if (_capturedKeys.contains(event.key, event)) {
217− return true;
218− }
219− return false;
216+ return _capturedKeys.contains(event.key, event);
220217 }
221218
222219 void ControllerScriptingInterface::captureKeyEvents(const KeyEvent& event) {