mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
[devmgmt]
improve keyboard navigation svn path=/trunk/; revision=63013
This commit is contained in:
@@ -304,7 +304,7 @@ InitMainWnd(PMAIN_WND_INFO Info)
|
||||
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 @@ OnNotify(PMAIN_WND_INFO Info,
|
||||
}
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user