Skip to content

Commit b70a47b

Browse files
committed
patch 8.1.1096: MS-Windows: cannot distinguish BS and CTRL-H
Problem: MS-Windows: cannot distinguish BS and CTRL-H. Solution: Add code for VK_BACK. (Linwei, closes #1833)
1 parent 8662189 commit b70a47b

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/os_win32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ static const struct
882882
{ VK_NEXT, TRUE, 'Q', '\322', 'v', '\323', }, // PgDn
883883
{ VK_INSERT,TRUE, 'R', '\324', '\325', '\326', },
884884
{ VK_DELETE,TRUE, 'S', '\327', '\330', '\331', },
885+
{ VK_BACK, TRUE, 'x', 'y', 'z', '{', }, // Backspace
885886

886887
{ VK_SNAPSHOT,TRUE, 0, 0, 0, 'r', }, // PrtScrn
887888

@@ -911,8 +912,7 @@ static const struct
911912
{ VK_NUMPAD7,TRUE, '\366', '\367', '\370', '\371', },
912913
{ VK_NUMPAD8,TRUE, '\372', '\373', '\374', '\375', },
913914
// Sorry, out of number space! <negri>
914-
{ VK_NUMPAD9,TRUE, '\376', '\377', '\377', '\367', },
915-
915+
{ VK_NUMPAD9,TRUE, '\376', '\377', '|', '}', },
916916
};
917917

918918

src/term.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ static struct builtin_term builtin_termcaps[] =
663663
{K_K7, "\316\366"},
664664
{K_K8, "\316\372"},
665665
{K_K9, "\316\376"},
666+
{K_BS, "\316x"},
666667
# endif
667668

668669
# if defined(VMS) || defined(ALL_BUILTIN_TCAPS)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1096,
774776
/**/
775777
1095,
776778
/**/

0 commit comments

Comments
 (0)