https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0ec08818b5dfe401afaf4…
commit 0ec08818b5dfe401afaf4778b861f67eae0cb2f1
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Tue Jun 5 22:07:39 2018 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sat Jun 9 17:14:06 2018 +0200
[RAPPS] Select the search bar with ctrl+f
---
base/applications/rapps/gui.cpp | 4 ++++
base/applications/rapps/include/resource.h | 1 +
base/applications/rapps/rapps.rc | 1 +
3 files changed, 6 insertions(+)
diff --git a/base/applications/rapps/gui.cpp b/base/applications/rapps/gui.cpp
index ed2c3b8264..1b715b6d8b 100644
--- a/base/applications/rapps/gui.cpp
+++ b/base/applications/rapps/gui.cpp
@@ -1456,6 +1456,10 @@ private:
PostMessageW(WM_CLOSE, 0, 0);
break;
+ case ID_SEARCH:
+ ::SetFocus(m_SearchBar->m_hWnd);
+ break;
+
case ID_INSTALL:
if (IsAvailableEnum(SelectedEnumType))
{
diff --git a/base/applications/rapps/include/resource.h
b/base/applications/rapps/include/resource.h
index 7d5a9b9ebf..fcd1502f1a 100644
--- a/base/applications/rapps/include/resource.h
+++ b/base/applications/rapps/include/resource.h
@@ -79,6 +79,7 @@
#define ID_REGREMOVE 560
#define ID_RESETDB 561
#define ID_CHECK_ALL 562
+#define ID_SEARCH 563
/* Strings */
#define IDS_APPTITLE 100
diff --git a/base/applications/rapps/rapps.rc b/base/applications/rapps/rapps.rc
index 4d4c796c2e..296b99b6b4 100644
--- a/base/applications/rapps/rapps.rc
+++ b/base/applications/rapps/rapps.rc
@@ -50,6 +50,7 @@ HOTKEYS ACCELERATORS
VK_F5, ID_RESETDB, CONTROL, VIRTKEY
VK_DELETE, ID_UNINSTALL, CONTROL, VIRTKEY
VK_RETURN, ID_INSTALL, CONTROL, VIRTKEY
+ "F", ID_SEARCH, CONTROL, VIRTKEY
}
#include <reactos/manifest_exe.rc>