Don't insert text from keys like super-i

While at it, use declaration order for modifiers.
This commit is contained in:
Johannes Altmanninger
2025-03-30 08:33:24 +02:00
parent 95b93c6bff
commit 35ae0bf1f2
2 changed files with 3 additions and 3 deletions

View File

@@ -580,10 +580,10 @@ pub(crate) fn terminal_protocols_disable_ifn() {
fn parse_mask(mask: u32) -> Modifiers {
Modifiers {
sup: (mask & 8) != 0,
ctrl: (mask & 4) != 0,
alt: (mask & 2) != 0,
shift: (mask & 1) != 0,
sup: (mask & 8) != 0,
}
}

View File

@@ -77,10 +77,10 @@ const fn new() -> Self {
m
};
pub(crate) fn is_some(&self) -> bool {
self.ctrl || self.alt || self.shift
*self != Self::new()
}
pub(crate) fn is_none(&self) -> bool {
!self.is_some()
*self == Self::new()
}
}