More character key name aliases

This commit is contained in:
Kovid Goyal
2021-01-16 13:23:11 +05:30
parent 86ce72e725
commit b1c1c497e4

View File

@@ -43,8 +43,15 @@ character_key_name_aliases = {
'BACKSLASH': '\\',
'TILDE': '~',
'GRAVE': '`',
'GRAVE_ACCENT': '`',
'APOSTROPHE': "'",
'SEMICOLON': ';',
'COLON': ':',
'LEFT_BRACKET': '[',
'RIGHT_BRACKET': ']',
}
for x in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
character_key_name_aliases[x] = x.lower()
LookupFunc = Callable[[str, bool], Optional[int]]