mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-15 22:36:14 +00:00
config: macos-option-as-alt now accepts "left", "right"
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user