diff --git a/core/src/keyboard/modifiers_state.rs b/core/src/keyboard/modifiers_state.rs index 0cfc6d69..4d24266f 100644 --- a/core/src/keyboard/modifiers_state.rs +++ b/core/src/keyboard/modifiers_state.rs @@ -20,10 +20,10 @@ impl ModifiersState { /// /// [`ModifiersState`]: struct.ModifiersState.html pub fn matches(&self, modifiers: ModifiersState) -> bool { - let shift = !modifiers.shift || modifiers.shift && self.shift; - let control = !modifiers.control || modifiers.control && self.control; - let alt = !modifiers.alt || modifiers.alt && self.alt; - let logo = !modifiers.logo || modifiers.logo && self.logo; + let shift = !modifiers.shift || self.shift; + let control = !modifiers.control || self.control; + let alt = !modifiers.alt || self.alt; + let logo = !modifiers.logo || self.logo; shift && control && alt && logo }