Added plus + key

This commit is contained in:
Aurélien Cibrario
2023-09-14 15:51:02 +02:00
committed by Mitchell Hashimoto
parent 2c924be9b1
commit 509be969af
2 changed files with 6 additions and 0 deletions

View File

@ -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, // ]

View File

@ -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 },