[RAPPS] Select the search bar with ctrl+f
authorMark Jansen <mark.jansen@reactos.org>
Tue, 5 Jun 2018 20:07:39 +0000 (22:07 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Sat, 9 Jun 2018 15:14:06 +0000 (17:14 +0200)
base/applications/rapps/gui.cpp
base/applications/rapps/include/resource.h
base/applications/rapps/rapps.rc

index ed2c3b8..1b715b6 100644 (file)
@@ -1456,6 +1456,10 @@ private:
             PostMessageW(WM_CLOSE, 0, 0);
             break;
 
             PostMessageW(WM_CLOSE, 0, 0);
             break;
 
+        case ID_SEARCH:
+            ::SetFocus(m_SearchBar->m_hWnd);
+            break;
+
         case ID_INSTALL:
             if (IsAvailableEnum(SelectedEnumType))
             {
         case ID_INSTALL:
             if (IsAvailableEnum(SelectedEnumType))
             {
index 7d5a9b9..fcd1502 100644 (file)
@@ -79,6 +79,7 @@
 #define ID_REGREMOVE             560
 #define ID_RESETDB               561
 #define ID_CHECK_ALL             562
 #define ID_REGREMOVE             560
 #define ID_RESETDB               561
 #define ID_CHECK_ALL             562
+#define ID_SEARCH                563
 
 /* Strings */
 #define IDS_APPTITLE             100
 
 /* Strings */
 #define IDS_APPTITLE             100
index 4d4c796..296b99b 100644 (file)
@@ -50,6 +50,7 @@ HOTKEYS ACCELERATORS
   VK_F5,     ID_RESETDB,   CONTROL, VIRTKEY
   VK_DELETE, ID_UNINSTALL, CONTROL, VIRTKEY
   VK_RETURN, ID_INSTALL,   CONTROL, VIRTKEY
   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>
 }
 
 #include <reactos/manifest_exe.rc>