Skip to content
Snippets Groups Projects
Unverified Commit 22c23827 authored by GyDi's avatar GyDi
Browse files

feat(macOS): support cmd+w and cmd+q

parent 38e1a4fe
No related branches found
No related tags found
No related merge requests found
......@@ -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)
)),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment