Add Ctrl+Alt+Shift+K combo to toggle system key grab

Fixes #1637
This commit is contained in:
Cameron Gutman
2026-05-24 15:13:23 -05:00
parent 97240cd5f2
commit 29294553bb
3 changed files with 28 additions and 9 deletions
+15
View File
@@ -153,6 +153,21 @@ void SdlInputHandler::performSpecialKeyCombo(KeyCombo combo)
SDL_PushEvent(&quitExitEvent);
break;
case KeyComboToggleKeyboardGrab:
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected keyboard grab toggle combo");
// Toggle the system key capture mode
if (isSystemKeyCaptureActive()) {
m_CaptureSystemKeysMode = StreamingPreferences::CSK_OFF;
}
else {
m_CaptureSystemKeysMode = StreamingPreferences::CSK_ALWAYS;
}
updateKeyboardGrabState();
break;
default:
Q_UNREACHABLE();
}