diff --git a/kitty/keys.h b/kitty/keys.h index 2413dea6f..758846b01 100644 --- a/kitty/keys.h +++ b/kitty/keys.h @@ -822,6 +822,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) { return "\x01\x1c"; case 58: // RIGHT_BRACKET return "\x01\x1d"; + case 59: // CIRCUMFLEX + return "\x01\x1e"; case 60: // UNDERSCORE return "\x01\x00"; case 61: // GRAVE_ACCENT @@ -2487,6 +2489,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) { return "\x01\x1c"; case 58: // RIGHT_BRACKET return "\x01\x1d"; + case 59: // CIRCUMFLEX + return "\x01\x1e"; case 60: // UNDERSCORE return "\x01\x00"; case 61: // GRAVE_ACCENT @@ -4161,6 +4165,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) { return "\x01\x1c"; case 58: // RIGHT_BRACKET return "\x01\x1d"; + case 59: // CIRCUMFLEX + return "\x01\x1e"; case 60: // UNDERSCORE return "\x01\x00"; case 61: // GRAVE_ACCENT @@ -5826,6 +5832,8 @@ key_lookup(uint8_t key, KeyboardMode mode, uint8_t mods, uint8_t action) { return "\x01\x1c"; case 58: // RIGHT_BRACKET return "\x01\x1d"; + case 59: // CIRCUMFLEX + return "\x01\x1e"; case 60: // UNDERSCORE return "\x01\x00"; case 61: // GRAVE_ACCENT diff --git a/kitty/keys.py b/kitty/keys.py index 5d6e92c6c..9184a1be4 100644 --- a/kitty/keys.py +++ b/kitty/keys.py @@ -128,6 +128,7 @@ control_codes[defines.GLFW_KEY_3] = (27,) control_codes[defines.GLFW_KEY_4] = (28,) control_codes[defines.GLFW_KEY_5] = (29,) control_codes[defines.GLFW_KEY_6] = (30,) +control_codes[defines.GLFW_KEY_CIRCUMFLEX] = (30,) control_codes[defines.GLFW_KEY_7] = (31,) control_codes[defines.GLFW_KEY_SLASH] = (31,) control_codes[defines.GLFW_KEY_8] = (127,)