Fix Ctrl+Alt+Space not working in normal and application keyboard modes.
Fixes #562
This commit is contained in:
parent
c5da1c0f1b
commit
fe65b346c1
8
kitty/keys.h
generated
8
kitty/keys.h
generated
@ -1230,6 +1230,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
|||||||
} // end switch(key)
|
} // end switch(key)
|
||||||
case 0x6:
|
case 0x6:
|
||||||
switch(key & 0x7f) { default: return NULL;
|
switch(key & 0x7f) { default: return NULL;
|
||||||
|
case 0: // SPACE
|
||||||
|
return "\x02\x1b\x00";
|
||||||
case 18: // A
|
case 18: // A
|
||||||
return "\x02\x1b\x01";
|
return "\x02\x1b\x01";
|
||||||
case 19: // B
|
case 19: // B
|
||||||
@ -2853,6 +2855,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
|||||||
} // end switch(key)
|
} // end switch(key)
|
||||||
case 0x6:
|
case 0x6:
|
||||||
switch(key & 0x7f) { default: return NULL;
|
switch(key & 0x7f) { default: return NULL;
|
||||||
|
case 0: // SPACE
|
||||||
|
return "\x02\x1b\x00";
|
||||||
case 18: // A
|
case 18: // A
|
||||||
return "\x02\x1b\x01";
|
return "\x02\x1b\x01";
|
||||||
case 19: // B
|
case 19: // B
|
||||||
@ -4485,6 +4489,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
|||||||
} // end switch(key)
|
} // end switch(key)
|
||||||
case 0x6:
|
case 0x6:
|
||||||
switch(key & 0x7f) { default: return NULL;
|
switch(key & 0x7f) { default: return NULL;
|
||||||
|
case 0: // SPACE
|
||||||
|
return "\x02\x1b\x00";
|
||||||
case 18: // A
|
case 18: // A
|
||||||
return "\x02\x1b\x01";
|
return "\x02\x1b\x01";
|
||||||
case 19: // B
|
case 19: // B
|
||||||
@ -6108,6 +6114,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) {
|
|||||||
} // end switch(key)
|
} // end switch(key)
|
||||||
case 0x6:
|
case 0x6:
|
||||||
switch(key & 0x7f) { default: return NULL;
|
switch(key & 0x7f) { default: return NULL;
|
||||||
|
case 0: // SPACE
|
||||||
|
return "\x02\x1b\x00";
|
||||||
case 18: // A
|
case 18: // A
|
||||||
return "\x02\x1b\x01";
|
return "\x02\x1b\x01";
|
||||||
case 19: // B
|
case 19: // B
|
||||||
|
|||||||
@ -49,7 +49,9 @@ SHIFTED_KEYS = {
|
|||||||
defines.GLFW_KEY_DOWN: key_as_bytes('kind'),
|
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 {
|
for kf, kn in {
|
||||||
defines.GLFW_KEY_UP: 'kcuu1',
|
defines.GLFW_KEY_UP: 'kcuu1',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user