Author: fireball
Date: Sun Dec 5 10:27:45 2010
New Revision: 49954
URL:
http://svn.reactos.org/svn/reactos?rev=49954&view=rev
Log:
[TASKMGR]
- Rafal Harabien: Add support for DELETE key to processes and applications list in
taskmgr.
See issue #5646 for more details.
Modified:
trunk/reactos/base/applications/taskmgr/applpage.c
trunk/reactos/base/applications/taskmgr/procpage.c
Modified: trunk/reactos/base/applications/taskmgr/applpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/applpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/applpage.c [iso-8859-1] Sun Dec 5 10:27:45
2010
@@ -210,6 +210,11 @@
ApplicationPageOnNotify(wParam, lParam);
break;
+ case WM_KEYDOWN:
+ if (wParam == VK_DELETE)
+ ProcessPage_OnEndProcess();
+ break;
+
}
return 0;
@@ -584,6 +589,14 @@
ApplicationPage_OnSwitchTo();
break;
+
+ case LVN_KEYDOWN:
+
+ if (((LPNMLVKEYDOWN)lParam)->wVKey == VK_DELETE)
+ ApplicationPage_OnEndTask();
+
+ break;
+
}
}
else if (pnmh->hwndFrom == ListView_GetHeader(hApplicationPageListCtrl))
Modified: trunk/reactos/base/applications/taskmgr/procpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] Sun Dec 5 10:27:45
2010
@@ -201,6 +201,11 @@
case WM_NOTIFY:
ProcessPageOnNotify(wParam, lParam);
break;
+
+ case WM_KEYDOWN:
+ if (wParam == VK_DELETE)
+ ProcessPage_OnEndProcess();
+ break;
}
return 0;
@@ -249,6 +254,12 @@
case NM_RCLICK:
ProcessPageShowContextMenu(GetSelectedProcessId());
+ break;
+
+ case LVN_KEYDOWN:
+
+ if (((LPNMLVKEYDOWN)lParam)->wVKey == VK_DELETE)
+ ProcessPage_OnEndProcess();
break;
}