https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f6edd653b02ab6479f0ac…
commit f6edd653b02ab6479f0ac69d14b2d45bac21c058
Author: Stanislav Motylkov <x86corez(a)gmail.com>
AuthorDate: Tue Dec 7 20:36:49 2021 +0300
Commit: Stanislav Motylkov <x86corez(a)gmail.com>
CommitDate: Tue Dec 7 20:36:49 2021 +0300
[RAPPS] Fix Ctrl+F hotkey not working regression
Addendum to 4c7bd34a. CORE-17881
---
base/applications/rapps/appview.cpp | 5 +++++
base/applications/rapps/gui.cpp | 4 ++++
base/applications/rapps/include/appview.h | 1 +
3 files changed, 10 insertions(+)
diff --git a/base/applications/rapps/appview.cpp b/base/applications/rapps/appview.cpp
index a9fe2922254..d548504c1cb 100644
--- a/base/applications/rapps/appview.cpp
+++ b/base/applications/rapps/appview.cpp
@@ -1713,6 +1713,11 @@ void CApplicationView::SetRedraw(BOOL bRedraw)
m_ListView->SetRedraw(bRedraw);
}
+void CApplicationView::SetFocusOnSearchBar()
+{
+ m_SearchBar->SetFocus();
+}
+
VOID CApplicationView::OnSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
{
if (wParam == SIZE_MINIMIZED)
diff --git a/base/applications/rapps/gui.cpp b/base/applications/rapps/gui.cpp
index 80cd779bed1..8b26bc2a2f1 100644
--- a/base/applications/rapps/gui.cpp
+++ b/base/applications/rapps/gui.cpp
@@ -545,6 +545,10 @@ VOID CMainWindow::OnCommand(WPARAM wParam, LPARAM lParam)
PostMessageW(WM_CLOSE, 0, 0);
break;
+ case ID_SEARCH:
+ m_ApplicationView->SetFocusOnSearchBar();
+ break;
+
case ID_INSTALL:
if (IsAvailableEnum(SelectedEnumType))
{
diff --git a/base/applications/rapps/include/appview.h
b/base/applications/rapps/include/appview.h
index 9042a361d33..7a6374ccafa 100644
--- a/base/applications/rapps/include/appview.h
+++ b/base/applications/rapps/include/appview.h
@@ -367,6 +367,7 @@ public:
HWND Create(HWND hwndParent);
void SetRedraw(BOOL bRedraw);
+ void SetFocusOnSearchBar();
BOOL SetDisplayAppType(APPLICATION_VIEW_TYPE AppType);
BOOL AddInstalledApplication(CInstalledApplicationInfo *InstAppInfo, LPVOID param);