Fix Ctrl/alt+] not working
This commit is contained in:
parent
03260f05a8
commit
4e9b10c2bb
@ -35,8 +35,8 @@ SHIFTED_KEYS = {
|
|||||||
defines.GLFW_KEY_RIGHT: key_as_bytes('kRIT'),
|
defines.GLFW_KEY_RIGHT: key_as_bytes('kRIT'),
|
||||||
}
|
}
|
||||||
|
|
||||||
control_codes = {k: 1 + i for i, k in enumerate(range(defines.GLFW_KEY_A, defines.GLFW_KEY_RIGHT_BRACKET))}
|
control_codes = {k: 1 + i for i, k in enumerate(range(defines.GLFW_KEY_A, defines.GLFW_KEY_RIGHT_BRACKET + 1))}
|
||||||
alt_codes = {k: (0x1b, k) for i, k in enumerate(range(defines.GLFW_KEY_SPACE, defines.GLFW_KEY_RIGHT_BRACKET))}
|
alt_codes = {k: (0x1b, k) for i, k in enumerate(range(defines.GLFW_KEY_SPACE, defines.GLFW_KEY_RIGHT_BRACKET + 1))}
|
||||||
|
|
||||||
|
|
||||||
def interpret_key_event(key, scancode, mods):
|
def interpret_key_event(key, scancode, mods):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user