From 22c2382765edb97eac9167bfa8dcec2863d3d2d3 Mon Sep 17 00:00:00 2001
From: GyDi <segydi@foxmail.com>
Date: Fri, 4 Nov 2022 00:51:46 +0800
Subject: [PATCH] feat(macOS): support cmd+w and cmd+q

---
 src-tauri/src/main.rs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 1d7d15a..0c9dd67 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -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)
       )),
     );
   }
-- 
GitLab