diff --git a/include/ghostty.h b/include/ghostty.h index cef635867..2e5a01eef 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -221,6 +221,7 @@ typedef enum { GHOSTTY_KEY_PERIOD, GHOSTTY_KEY_SLASH, GHOSTTY_KEY_MINUS, + GHOSTTY_KEY_PLUS, GHOSTTY_KEY_EQUAL, GHOSTTY_KEY_LEFT_BRACKET, // [ GHOSTTY_KEY_RIGHT_BRACKET, // ] diff --git a/src/input/key.zig b/src/input/key.zig index 159871847..3f75e7e6e 100644 --- a/src/input/key.zig +++ b/src/input/key.zig @@ -281,6 +281,7 @@ pub const Key = enum(c_int) { period, slash, minus, + plus, equal, left_bracket, // [ right_bracket, // ] @@ -612,6 +613,9 @@ pub const Key = enum(c_int) { .f23, .f24, .f25, + + // These keys aren't represented in cimgui + .plus, => null, }; } @@ -692,6 +696,7 @@ pub const Key = enum(c_int) { .{ '.', .period }, .{ '/', .slash }, .{ '-', .minus }, + .{ '+', .plus }, .{ '=', .equal }, .{ '[', .left_bracket }, .{ ']', .right_bracket },