Author: cwittich
Date: Sun Apr 27 08:15:59 2014
New Revision: 63013
URL:
http://svn.reactos.org/svn/reactos?rev=63013&view=rev
Log:
[devmgmt]
improve keyboard navigation
Modified:
trunk/reactos/base/applications/mscutils/devmgmt/mainwnd.c
Modified: trunk/reactos/base/applications/mscutils/devmgmt/mainwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/devmgmt/mainwnd.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/devmgmt/mainwnd.c [iso-8859-1] Sun Apr 27
08:15:59 2014
@@ -304,7 +304,7 @@
0);
SetMenuDefaultItem(Info->hShortcutMenu, IDC_PROP, FALSE);
- /* create seperate thread to emum devices */
+ /* create separate thread to emum devices */
DevEnumThread = CreateThread(NULL,
0,
DeviceEnumThread,
@@ -418,6 +418,23 @@
}
break;
+ case NM_RETURN:
+ {
+ HTREEITEM hSelected = TreeView_GetSelection(Info->hTreeView);
+ if (Info->Display == DevicesByType)
+ {
+ OpenPropSheet(Info->hTreeView, hSelected);
+ }
+ else if (Info->Display == DevicesByConnection)
+ {
+ if (hSelected != TreeView_GetRoot(Info->hTreeView))
+ {
+ OpenPropSheet(Info->hTreeView, hSelected);
+ }
+ }
+ }
+ break;
+
case NM_DBLCLK:
{
HTREEITEM hSelected = TreeView_GetSelection(Info->hTreeView);