Mercurial > vim
comparison src/terminal.c @ 13294:5fc59833a748 v8.0.1521
patch 8.0.1521: Shift-Tab does not work in a terminal window
commit https://github.com/vim/vim/commit/73cddfd559152ea9b7e978ea7cf9c0d3a41e7316
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 16 20:01:04 2018 +0100
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 https://github.com/vim/vim/issues/2644)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 16 Feb 2018 20:15:08 +0100 |
parents | c42fe898b578 |
children | a88c5e12b860 |
comparison
equal
deleted
inserted
replaced
13293:3f77bb7ee6d6 | 13294:5fc59833a748 |
---|---|
41 * - When using 'termguicolors' still use the 16 ANSI colors as-is. Helps for | 41 * - When using 'termguicolors' still use the 16 ANSI colors as-is. Helps for |
42 * a job that uses 16 colors while Vim is using > 256. | 42 * a job that uses 16 colors while Vim is using > 256. |
43 * - in GUI vertical split causes problems. Cursor is flickering. (Hirohito | 43 * - in GUI vertical split causes problems. Cursor is flickering. (Hirohito |
44 * Higashi, 2017 Sep 19) | 44 * Higashi, 2017 Sep 19) |
45 * - Trigger TerminalOpen event? #2422 patch in #2484 | 45 * - Trigger TerminalOpen event? #2422 patch in #2484 |
46 * - Shift-Tab does not work. | |
47 * - after resizing windows overlap. (Boris Staletic, #2164) | 46 * - after resizing windows overlap. (Boris Staletic, #2164) |
48 * - Redirecting output does not work on MS-Windows, Test_terminal_redir_file() | 47 * - Redirecting output does not work on MS-Windows, Test_terminal_redir_file() |
49 * is disabled. | 48 * is disabled. |
50 * - cursor blinks in terminal on widows with a timer. (xtal8, #2142) | 49 * - cursor blinks in terminal on widows with a timer. (xtal8, #2142) |
51 * - When closing gvim with an active terminal buffer, the dialog suggests | 50 * - When closing gvim with an active terminal buffer, the dialog suggests |
867 key = VTERM_KEY_RIGHT; break; | 866 key = VTERM_KEY_RIGHT; break; |
868 case K_UP: key = VTERM_KEY_UP; break; | 867 case K_UP: key = VTERM_KEY_UP; break; |
869 case K_S_UP: mod = VTERM_MOD_SHIFT; | 868 case K_S_UP: mod = VTERM_MOD_SHIFT; |
870 key = VTERM_KEY_UP; break; | 869 key = VTERM_KEY_UP; break; |
871 case TAB: key = VTERM_KEY_TAB; break; | 870 case TAB: key = VTERM_KEY_TAB; break; |
871 case K_S_TAB: mod = VTERM_MOD_SHIFT; | |
872 key = VTERM_KEY_TAB; break; | |
872 | 873 |
873 case K_MOUSEUP: other = term_send_mouse(vterm, 5, 1); break; | 874 case K_MOUSEUP: other = term_send_mouse(vterm, 5, 1); break; |
874 case K_MOUSEDOWN: other = term_send_mouse(vterm, 4, 1); break; | 875 case K_MOUSEDOWN: other = term_send_mouse(vterm, 4, 1); break; |
875 case K_MOUSELEFT: /* TODO */ return 0; | 876 case K_MOUSELEFT: /* TODO */ return 0; |
876 case K_MOUSERIGHT: /* TODO */ return 0; | 877 case K_MOUSERIGHT: /* TODO */ return 0; |