Skip to content

Commit 3f41c66

Browse files
committed
appkit: fix errors
1 parent b1836b7 commit 3f41c66

File tree

1 file changed

+3
-3
lines changed
  • src/platform_impl/apple/appkit

1 file changed

+3
-3
lines changed

src/platform_impl/apple/appkit/view.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,10 +1122,10 @@ fn replace_event(event: &NSEvent, option_as_alt: OptionAsAlt) -> Retained<NSEven
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,
1125-
OptionAsAlt::Both if ev_mods.alt_key() => true,
1125+
OptionAsAlt::Both if ev_mods.alt_state() => true,
11261126
_ => false,
1127-
} && !ev_mods.control_key()
1128-
&& !ev_mods.meta_key();
1127+
} && !ev_mods.control_state()
1128+
&& !ev_mods.meta_state();
11291129

11301130
if ignore_alt_characters {
11311131
let ns_chars = unsafe {

0 commit comments

Comments
 (0)