/// The set of modifier keys which were pressed when the event occurred
The set of modifier keys which were pressed when the event occurred
The set of modifier keys which were pressed when the event occurred
pub fn modifiers(&self) -> Modifiers {
            let mut modifiers = Modifiers::empty();
            #[allow(deprecated)]
            {
                if self.alt_key {
                    modifiers.insert(Modifiers::ALT);
                }
                if self.ctrl_key {
                    modifiers.insert(Modifiers::CONTROL);
                }
                if self.meta_key {
                    modifiers.insert(Modifiers::META);
                }
                if self.shift_key {
                    modifiers.insert(Modifiers::SHIFT);
                }
            }
            modifiers
        }
pub fn modifiers ( & self ) -> Modifiers { let mut modifiers = Modifiers :: empty ( ) ; # [ allow ( deprecated ) ] { if self . alt_key { modifiers . insert ( Modifiers :: ALT ) ; } if self . ctrl_key { modifiers . insert ( Modifiers :: CONTROL ) ; } if self . meta_key { modifiers . insert ( Modifiers :: META ) ; } if self . shift_key { modifiers . insert ( Modifiers :: SHIFT ) ; } } modifiers }
The set of modifier keys which were pressed when the event occurred
The set of modifier keys which were pressed when the event occurred
&self