1
0
forked from aniani/vim

patch 9.1.0660: MS-Windows: Shift-Insert does work on old conhost

Problem:  MS-Windows: Shift-Insert does not work on old conhost
          (Nick Jensen, after 9.0.1146)
Solution: handle Shift-Insert specifically
          (Christian Plewright)

fixes: #15326
closes: #15430

Signed-off-by: Christopher Plewright <chris@createng.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christopher Plewright
2024-08-04 19:57:44 +02:00
committed by Christian Brabandt
parent e0fd1ca7df
commit f5f69e8663
2 changed files with 9 additions and 0 deletions

View File

@@ -1264,6 +1264,13 @@ decode_key_event(
}
}
}
else if (pker->wVirtualKeyCode == VK_INSERT
&& (nModifs & SHIFT) != 0
&& (nModifs & ~SHIFT) == 0)
{
*pmodifiers = 0;
*pch2 = VirtKeyMap[i].chShift;
}
else
{
*pch2 = VirtKeyMap[i].chAlone;

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
660,
/**/
659,
/**/