mirror of
https://github.com/reactos/reactos.git
synced 2026-11-16 12:28:19 +08:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user