[RAPPS] Tell the invisible window not to grab the keyboard (#9744)

When silently installing RAPPS apps, it is possible to press the space
bar and this passes an invisible key press to cancel, thus making the
program not install. The proposed fix tells the invisible window not to
grab the keyboard.

CORE-20816

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Sankey
2026-11-05 11:42:52 +00:00
committed by GitHub
parent b85ad83c11
commit 3ebb6cc7a0

View File

@@ -805,7 +805,10 @@ CDownloadManager::RealDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam
ShowWindow(hDlg, IsSilentDialog() ? SW_HIDE : SW_SHOW);
StartWorkerThread();
return TRUE;
// A silent dialog is never shown, so it must not take the keyboard focus.
// Otherwise the focus goes to the hidden Cancel button and keys typed into
// another window (e.g. a space in the console) cancel the download (CORE-20816).
return !IsSilentDialog();
}
case WM_COMMAND: