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
213 213
214bool ControllerScriptingInterface::isKeyCaptured(const KeyEvent& event) const {214bool ControllerScriptingInterface::isKeyCaptured(const KeyEvent& event) const {
215 // if we've captured some combination of this key it will be in the map215 // if we've captured some combination of this key it will be in the map
216 if (_capturedKeys.contains(event.key, event)) {216 return _capturedKeys.contains(event.key, event);
217 return true;
218 }
219 return false;
220}217}
221 218
222void ControllerScriptingInterface::captureKeyEvents(const KeyEvent& event) {219void ControllerScriptingInterface::captureKeyEvents(const KeyEvent& event) {