config: macos-option-as-alt now accepts "left", "right"

This commit is contained in:
Mitchell Hashimoto
2023-08-14 12:50:21 -07:00
parent 721087be76
commit cbd6a325e9
3 changed files with 25 additions and 7 deletions

View File

@@ -249,7 +249,7 @@ pub const Config = struct {
/// (i.e. alt+ctrl+a).
///
/// This does not work with GLFW builds.
@"macos-option-as-alt": bool = false,
@"macos-option-as-alt": OptionAsAlt = .false,
/// This is set by the CLI parser for deinit.
_arena: ?ArenaAllocator = null,
@@ -1036,6 +1036,14 @@ fn equal(comptime T: type, old: T, new: T) bool {
}
}
/// Valid values for macos-option-as-alt.
pub const OptionAsAlt = enum {
false,
true,
left,
right,
};
/// Color represents a color using RGB.
pub const Color = struct {
r: u8,