Don't insert text from keys like super-i

While at it, use declaration order for modifiers.

(cherry picked from commit 35ae0bf1f2)
This commit is contained in:
Johannes Altmanninger
2025-03-30 08:33:24 +02:00
committed by Fabian Boehm
parent de154065fe
commit 6af0378916
2 changed files with 3 additions and 3 deletions

View File

@@ -560,10 +560,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

@@ -72,10 +72,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()
}
}