Skip to content

Commit 73cddfd

Browse files
committed
patch 8.0.1521: Shift-Tab does not work in a terminal window
Problem: Shift-Tab does not work in a terminal window. Solution: Recognize Shift-Tab key press. (Jsees Luehrs, closes #2644)
1 parent 181ca99 commit 73cddfd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/terminal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
* - in GUI vertical split causes problems. Cursor is flickering. (Hirohito
4444
* Higashi, 2017 Sep 19)
4545
* - Trigger TerminalOpen event? #2422 patch in #2484
46-
* - Shift-Tab does not work.
4746
* - after resizing windows overlap. (Boris Staletic, #2164)
4847
* - Redirecting output does not work on MS-Windows, Test_terminal_redir_file()
4948
* is disabled.
@@ -869,6 +868,8 @@ term_convert_key(term_T *term, int c, char *buf)
869868
case K_S_UP: mod = VTERM_MOD_SHIFT;
870869
key = VTERM_KEY_UP; break;
871870
case TAB: key = VTERM_KEY_TAB; break;
871+
case K_S_TAB: mod = VTERM_MOD_SHIFT;
872+
key = VTERM_KEY_TAB; break;
872873

873874
case K_MOUSEUP: other = term_send_mouse(vterm, 5, 1); break;
874875
case K_MOUSEDOWN: other = term_send_mouse(vterm, 4, 1); break;

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+
1521,
774776
/**/
775777
1520,
776778
/**/

0 commit comments

Comments
 (0)