Fix Ctrl+Alt+Space not working in normal and application keyboard modes.

Fixes #562
This commit is contained in:
Kovid Goyal 2018-05-22 14:52:00 +05:30
parent c5da1c0f1b
commit fe65b346c1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 11 additions and 1 deletions

8
kitty/keys.h generated
View File

@ -1230,6 +1230,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
} // end switch(key)
case 0x6:
switch(key & 0x7f) { default: return NULL;
case 0: // SPACE
return "\x02\x1b\x00";
case 18: // A
return "\x02\x1b\x01";
case 19: // B
@ -2853,6 +2855,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
} // end switch(key)
case 0x6:
switch(key & 0x7f) { default: return NULL;
case 0: // SPACE
return "\x02\x1b\x00";
case 18: // A
return "\x02\x1b\x01";
case 19: // B
@ -4485,6 +4489,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
} // end switch(key)
case 0x6:
switch(key & 0x7f) { default: return NULL;
case 0: // SPACE
return "\x02\x1b\x00";
case 18: // A
return "\x02\x1b\x01";
case 19: // B
@ -6108,6 +6114,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
} // end switch(key)
case 0x6:
switch(key & 0x7f) { default: return NULL;
case 0: // SPACE
return "\x02\x1b\x00";
case 18: // A
return "\x02\x1b\x01";
case 19: // B

View File

@ -49,7 +49,9 @@ SHIFTED_KEYS = {
defines.GLFW_KEY_DOWN: key_as_bytes('kind'),
}
control_alt_codes = {}
control_alt_codes = {
defines.GLFW_KEY_SPACE: b'\x1b\0',
}
for kf, kn in {
defines.GLFW_KEY_UP: 'kcuu1',