mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-13 15:31:17 -06:00
Add option to disable the console key (closes 655)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user