mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 05:58:32 +08:00
feat(macOS): support cmd+w and cmd+q
This commit is contained in:
1 parent
03cedc7b35
commit
2ca0483bf4
1 file changed
+4
-2
@@ -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)
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user