From eaf1d4a782803779b00a23a21f79f8f38af32785 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sun, 27 Apr 2014 08:15:59 +0000 Subject: [PATCH] [devmgmt] improve keyboard navigation svn path=/trunk/; revision=63013 --- .../applications/mscutils/devmgmt/mainwnd.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/reactos/base/applications/mscutils/devmgmt/mainwnd.c b/reactos/base/applications/mscutils/devmgmt/mainwnd.c index e08341a9a52..3447d1d60f5 100644 --- a/reactos/base/applications/mscutils/devmgmt/mainwnd.c +++ b/reactos/base/applications/mscutils/devmgmt/mainwnd.c @@ -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);