mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Forgot a few keys in the localizes keys map
This commit is contained in:
parent
cb5d6547e5
commit
ac53776ee4
1 changed files with 5 additions and 0 deletions
|
|
@ -53,6 +53,11 @@ valid_localized_key_names = {
|
|||
k: getattr(defines, 'GLFW_KEY_' + k) for k in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
|
||||
}
|
||||
|
||||
for name, ch in {
|
||||
'APOSTROPHE': "'", 'COMMA': ',', 'PERIOD': '.', 'SLASH': '/', 'MINUS': '-', 'SEMICOLON': ';', 'EQUAL': '=',
|
||||
'LEFT_BRACKET': '[', 'RIGHT_BRACKET': ']', 'GRAVE_ACCENT': '`', 'BACKSLASH': '\\'}.items():
|
||||
valid_localized_key_names[ch] = getattr(defines, 'GLFW_KEY_' + name)
|
||||
|
||||
|
||||
def get_localized_key(key, scancode):
|
||||
name = defines.glfw_get_key_name(key, scancode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue