Add option to disable the console key (closes 655)

This commit is contained in:
Alexander Bock
2018-07-18 14:25:04 -04:00
parent 381dbf576d
commit 6ee31384d7
4 changed files with 9 additions and 3 deletions

View File

@@ -1367,9 +1367,11 @@ void OpenSpaceEngine::keyboardCallback(Key key, KeyModifier mod, KeyAction actio
}
}
const bool isConsoleConsumed = _console->keyboardCallback(key, mod, action);
if (isConsoleConsumed) {
return;
if (!_configuration->isConsoleDisabled) {
const bool isConsoleConsumed = _console->keyboardCallback(key, mod, action);
if (isConsoleConsumed) {
return;
}
}
_navigationHandler->keyboardCallback(key, mod, action);