mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 08:16:13 +03:00
input: update preventsText comment
This commit is contained in:
@ -607,17 +607,16 @@ const KittyMods = packed struct(u8) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns true if the modifiers prevent printable text
|
/// Returns true if the modifiers prevent printable text.
|
||||||
|
///
|
||||||
|
/// Note on macOS: this logic alone is not enough, since you must
|
||||||
|
/// consider macos_option_as_alt. See the Kitty encoder for more details.
|
||||||
pub fn preventsText(self: KittyMods) bool {
|
pub fn preventsText(self: KittyMods) bool {
|
||||||
if (self.alt or
|
return self.alt or
|
||||||
self.ctrl or
|
self.ctrl or
|
||||||
self.super or
|
self.super or
|
||||||
self.hyper or
|
self.hyper or
|
||||||
self.meta)
|
self.meta;
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the raw int value of this packed struct.
|
/// Returns the raw int value of this packed struct.
|
||||||
|
Reference in New Issue
Block a user