mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
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:
committed by
Fabian Boehm
parent
de154065fe
commit
6af0378916
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user