Skip to content

Commit

Permalink
fix(macos): Fix incorrect Redo and CloseWindow accelerators (rust-win…
Browse files Browse the repository at this point in the history
…dowing#166)

* fix(macos): Fix incorrect Redo accelerator

* fix(macos): Fix incorrect CloseWindow accelerator (rust-windowing#159)
  • Loading branch information
probablykasper authored Aug 3, 2021
1 parent c95b0eb commit f4d718a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/macos-accelerators-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": patch
---

Fix incorrect macOS Redo and Close Window shortcuts
4 changes: 2 additions & 2 deletions src/platform_impl/macos/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
)),
Expand Down Expand Up @@ -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,
),
)),
Expand Down

0 comments on commit f4d718a

Please sign in to comment.