[PATCH 1/2] kernel32: Use correct virtual-key code for the Delete key when using wineconsole
Hugh McMaster
hugh.mcmaster at outlook.com
Fri Nov 20 05:29:10 CST 2015
VK_DEL is 0x2e. The existing code used 127 (0x7F), which is VK_F16.
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
dlls/kernel32/editline.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/editline.c b/dlls/kernel32/editline.c
index b330869..f4c844b 100644
--- a/dlls/kernel32/editline.c
+++ b/dlls/kernel32/editline.c
@@ -789,7 +789,7 @@ static const KeyEntry StdKeyMap[] =
{
{/*BACK*/0x08, WCEL_DeletePrevChar },
{/*RETURN*/0x0d, WCEL_Done },
- {/*DEL*/127, WCEL_DeleteCurrChar },
+ {/*VK_DEL*/0x2e, WCEL_DeleteCurrChar },
{ 0, NULL }
};
@@ -827,7 +827,7 @@ static const KeyEntry EmacsKeyMapCtrl[] =
static const KeyEntry EmacsKeyMapAlt[] =
{
- {/*DEL*/127, WCEL_DeleteLeftWord },
+ {/*VK_DEL*/0x2e, WCEL_DeleteLeftWord },
{ '<', WCEL_MoveToFirstHist },
{ '>', WCEL_MoveToLastHist },
{ '?', WCEL_Beep },
--
1.9.1
More information about the wine-patches
mailing list