Showing the changes to interface/src/scripting/ControllerScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -213,10 +213,7 @@ bool ControllerScriptingInterface::isKeyCaptured(QKeyEvent* event) const { · 212 unmodified lines | |||
| 213 | 213 | ||
| 214 | bool ControllerScriptingInterface::isKeyCaptured(const KeyEvent& event) const { | 214 | bool ControllerScriptingInterface::isKeyCaptured(const KeyEvent& event) const { |
| 215 | // if we've captured some combination of this key it will be in the map | 215 | // 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 | ||
| 222 | void ControllerScriptingInterface::captureKeyEvents(const KeyEvent& event) { | 219 | void ControllerScriptingInterface::captureKeyEvents(const KeyEvent& event) { |