Author: janderwald
Date: Wed Apr 4 23:43:27 2007
New Revision: 26264
URL:
http://svn.reactos.org/svn/reactos?rev=26264&view=rev
Log:
- allow backspace in edit / hex mode
- patch by Kamil Hornicek (tykef(a)atlas.cz)
See issue #2129 for more details.
Modified:
trunk/reactos/base/applications/regedit/edit.c
Modified: trunk/reactos/base/applications/regedit/edit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/…
==============================================================================
--- trunk/reactos/base/applications/regedit/edit.c (original)
+++ trunk/reactos/base/applications/regedit/edit.c Wed Apr 4 23:43:27 2007
@@ -242,7 +242,7 @@
case WM_CHAR:
if (dwordEditMode == EDIT_MODE_DEC)
{
- if (isdigit((int) wParam & 0xff))
+ if (isdigit((int) wParam & 0xff) || iscntrl((int) wParam & 0xff))
{
break;
}
@@ -253,7 +253,7 @@
}
else if (dwordEditMode == EDIT_MODE_HEX)
{
- if (isxdigit((int) wParam & 0xff))
+ if (isxdigit((int) wParam & 0xff) || iscntrl((int) wParam & 0xff))
{
break;
}