MCPcopy Index your code
hub / github.com/VSCodeVim/Vim / ToControlCharacter

Method ToControlCharacter

src/configuration/notation.ts:22–28  ·  view source on GitHub ↗

* Converts keystroke like to a single control character like \t

(key: string)

Source from the content-addressed store, hash-verified

20 * Converts keystroke like <tab> to a single control character like \t
21 */
22 public static ToControlCharacter(key: string) {
23 if (key === '<tab>') {
24 return '\t';
25 }
26
27 return key;
28 }
29
30 public static IsControlKey(key: string): boolean {
31 key = key.toLocaleUpperCase();

Callers 4

execActionWithCountMethod · 0.80
execActionWithCountMethod · 0.80
execActionWithCountMethod · 0.80
execActionWithCountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected