diff --git a/src/configuration/notation.ts b/src/configuration/notation.ts index 9e1be2a060b..e549a7bd4fe 100644 --- a/src/configuration/notation.ts +++ b/src/configuration/notation.ts @@ -8,33 +8,27 @@ export class Notation { Esc: ['escape', 'esc'], BS: ['backspace', 'bs'], Del: ['delete', 'del'], + ' ': [''], + '\n': ['', ''] }; /** * Normalizes key to AngleBracketNotation * (e.g. , Ctrl+x, normalized to ) - * and resolves special cases such as '' + * and converts the characters to their literals + * (e.g. , , ) */ public static NormalizeKey(key: string, leaderKey: string): string { if (!this.isSurroundedByAngleBrackets(key) && key.length > 1) { key = `<${key.toLocaleLowerCase()}>`; } - // Special cases that we handle incorrectly (internally) - if (key.toLocaleLowerCase() === '') { - return ' '; - } - - if (key.toLocaleLowerCase() === '' || key.toLocaleLowerCase() === '') { - return '\n'; - } - if (key.toLocaleLowerCase() === '') { return leaderKey; } if (_.includes(['', '', '', ''], key.toLocaleLowerCase())) { - key = key.toLocaleLowerCase(); + return key.toLocaleLowerCase(); } for (const notationMapKey in this._notationMap) {