Skip to content

Commit

Permalink
feat(macOS): support cmd+w and cmd+q
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Nov 3, 2022
1 parent 38e1a4f commit 22c2382
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,16 @@ fn main() -> std::io::Result<()> {

builder = builder.menu(
Menu::new().add_submenu(Submenu::new(
"File",
"Edit",
Menu::new()
.add_native_item(MenuItem::Undo)
.add_native_item(MenuItem::Redo)
.add_native_item(MenuItem::Copy)
.add_native_item(MenuItem::Paste)
.add_native_item(MenuItem::Cut)
.add_native_item(MenuItem::SelectAll),
.add_native_item(MenuItem::SelectAll)
.add_native_item(MenuItem::CloseWindow)
.add_native_item(MenuItem::Quit)
)),
);
}
Expand Down

0 comments on commit 22c2382

Please sign in to comment.