Mercurial > vim
diff src/keymap.h @ 28704:e1aff2f300be v8.2.4876
patch 8.2.4876: MS-Windows: Shift-BS results in strange char in powershell
Commit: https://github.com/vim/vim/commit/dfbdadce44b754cfa9f55111bdc44bb6a5d6b320
Author: Christian Brabandt <cb@256bit.org>
Date: Thu May 5 20:46:47 2022 +0100
patch 8.2.4876: MS-Windows: Shift-BS results in strange char in powershell
Problem: MS-Windows: Shift-BS results in strange character in powershell.
Solution: Add K_S_BS. (Christian Brabandt, closes https://github.com/vim/vim/issues/10283, closes https://github.com/vim/vim/issues/10279)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 05 May 2022 22:00:05 +0200 |
parents | ce352871b382 |
children | d0241e74bfdb |
line wrap: on
line diff
--- a/src/keymap.h +++ b/src/keymap.h @@ -276,6 +276,7 @@ enum key_extra , KE_CANCEL = 102 // return from vgetc() , KE_COMMAND = 103 // <Cmd> special key , KE_SCRIPT_COMMAND = 104 // <ScriptCmd> special key + , KE_S_BS = 105 // shift + <BS> }; /* @@ -299,6 +300,7 @@ enum key_extra #define K_C_END TERMCAP2KEY(KS_EXTRA, KE_C_END) #define K_TAB TERMCAP2KEY(KS_EXTRA, KE_TAB) #define K_S_TAB TERMCAP2KEY('k', 'B') +#define K_S_BS TERMCAP2KEY(KS_EXTRA, KE_S_BS) // extra set of function keys F1-F4, for vt100 compatible xterm #define K_XF1 TERMCAP2KEY(KS_EXTRA, KE_XF1)