From: Mark Jansen Date: Tue, 5 Jun 2018 20:07:39 +0000 (+0200) Subject: [RAPPS] Select the search bar with ctrl+f X-Git-Tag: 0.4.11-dev~421 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=0ec08818b5dfe401afaf4778b861f67eae0cb2f1;hp=7cb411e88fa68419c2cce8a3eb544945bd4af095;ds=sidebyside [RAPPS] Select the search bar with ctrl+f --- diff --git a/base/applications/rapps/gui.cpp b/base/applications/rapps/gui.cpp index ed2c3b82649..1b715b6d8b3 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 7d5a9b9ebfa..fcd1502f1a7 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 4d4c796c2e7..296b99b6b4d 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