Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 30 files). Show all
Unified · Split
| @@ -228,10 +228,7 @@ bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const { · 227 unmodified lines | ||
| 228 | 228 | |
| 229 | 229 | bool ControllerScriptingInterface::isKeyCaptured(const KeyEvent& event) const { |
| 230 | 230 | // if we've captured some combination of this key it will be in the map |
| 231 | − if (_capturedKeys.contains(event.key, event)) { | |
| 232 | − return true; | |
| 233 | − } | |
| 234 | − return false; | |
| 231 | + return _capturedKeys.contains(event.key, event); | |
| 235 | 232 | } |
| 236 | 233 | |
| 237 | 234 | void ControllerScriptingInterface::captureKeyEvents(const KeyEvent& event) { |