diff --git a/.changes/macos-accelerators-fix.md b/.changes/macos-accelerators-fix.md new file mode 100644 index 0000000000..dcef9c6f2a --- /dev/null +++ b/.changes/macos-accelerators-fix.md @@ -0,0 +1,5 @@ +--- +"tao": patch +--- + +Fix incorrect macOS Redo and Close Window shortcuts diff --git a/src/platform_impl/macos/menu.rs b/src/platform_impl/macos/menu.rs index 86ba87482a..aa23a4e554 100644 --- a/src/platform_impl/macos/menu.rs +++ b/src/platform_impl/macos/menu.rs @@ -168,7 +168,7 @@ impl Menu { make_menu_item( "Close Window", Some(selector("performClose:")), - Some(Accelerator::new(RawMods::Meta, KeyCode::KeyX)), + Some(Accelerator::new(RawMods::Meta, KeyCode::KeyW)), menu_type, ), )), @@ -271,7 +271,7 @@ impl Menu { make_menu_item( "Redo", Some(selector("redo:")), - Some(Accelerator::new(RawMods::Shift, KeyCode::KeyZ)), + Some(Accelerator::new(RawMods::MetaShift, KeyCode::KeyZ)), menu_type, ), )),