From f5f69e8663db65567deb028c1d8e102a9c03ae55 Mon Sep 17 00:00:00 2001 From: Christopher Plewright Date: Sun, 4 Aug 2024 19:57:44 +0200 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/os_win32.c | 7 +++++++ src/version.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/os_win32.c b/src/os_win32.c index eeb3b47166..44d92c0f4a 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -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; diff --git a/src/version.c b/src/version.c index ef2f542e51..13167ab9d3 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 660, /**/ 659, /**/