Merge pull request #451 from Yinameah/add_plus_shortcut

Added plus `+` key : potential keybinding for zoom in / zoom out
This commit is contained in:
Mitchell Hashimoto
2024-01-21 21:13:36 -08:00
committed by GitHub
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 },