@@ -908,7 +908,7 @@ impl WinitView {
908908
909909 /// Reset modifiers and emit a synthetic ModifiersChanged event if deemed necessary.
910910 pub ( super ) fn reset_modifiers ( & self ) {
911- if !self . ivars ( ) . modifiers . get ( ) . state ( ) . is_empty ( ) {
911+ if !self . ivars ( ) . modifiers . get ( ) . is_empty ( ) {
912912 self . ivars ( ) . modifiers . set ( Modifiers :: empty ( ) ) ;
913913 self . queue_event ( WindowEvent :: ModifiersChanged ( self . ivars ( ) . modifiers . get ( ) ) ) ;
914914 }
@@ -972,7 +972,7 @@ impl WinitView {
972972 let phys_mod =
973973 phys_mod_state. entry ( logical_key) . or_insert ( ModLocationMask :: empty ( ) ) ;
974974
975- let is_active = current_modifiers. state ( ) . contains ( event_modifier) ;
975+ let is_active = current_modifiers. contains ( event_modifier) ;
976976 let mut events = VecDeque :: with_capacity ( 2 ) ;
977977
978978 // There is no API for getting whether the button was pressed or released
@@ -1118,7 +1118,7 @@ fn mouse_button(event: &NSEvent) -> MouseButton {
11181118// we're getting from the operating system, which makes it
11191119// impossible to provide such events as extra in `KeyEvent`.
11201120fn replace_event ( event : & NSEvent , option_as_alt : OptionAsAlt ) -> Retained < NSEvent > {
1121- let ev_mods = event_mods ( event) . state ( ) ;
1121+ let ev_mods = event_mods ( event) ;
11221122 let ignore_alt_characters = match option_as_alt {
11231123 OptionAsAlt :: OnlyLeft if lalt_pressed ( event) => true ,
11241124 OptionAsAlt :: OnlyRight if ralt_pressed ( event) => true ,
0 commit comments