Don't call setAllowsAutomaticKeyEquivalentLocalization on Big Sur (#20844)
Closes #20821 Release Notes: - Fixed a crash on Big Sur (preview only)
This commit is contained in:
parent
d4c5c0f05e
commit
e7a0890086
1 changed files with 4 additions and 2 deletions
|
@ -343,8 +343,10 @@ impl MacPlatform {
|
||||||
ns_string(key_to_native(&keystroke.key).as_ref()),
|
ns_string(key_to_native(&keystroke.key).as_ref()),
|
||||||
)
|
)
|
||||||
.autorelease();
|
.autorelease();
|
||||||
|
if MacPlatform::os_version().unwrap() >= SemanticVersion::new(12, 0, 0) {
|
||||||
let _: () =
|
let _: () =
|
||||||
msg_send![item, setAllowsAutomaticKeyEquivalentLocalization: NO];
|
msg_send![item, setAllowsAutomaticKeyEquivalentLocalization: NO];
|
||||||
|
}
|
||||||
item.setKeyEquivalentModifierMask_(mask);
|
item.setKeyEquivalentModifierMask_(mask);
|
||||||
}
|
}
|
||||||
// For multi-keystroke bindings, render the keystroke as part of the title.
|
// For multi-keystroke bindings, render the keystroke as part of the title.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue