Implement default macOS menu items
- `Zed -> Hide`, bound to `cmd-h` - `Zed -> Hide Others`, bound to `alt-cmd-h` - `Zed -> Show All` - `Window -> Minimize`, bound to `cmd-m` - `Window -> Zoom`
This commit is contained in:
@@ -135,6 +135,12 @@ impl super::Platform for Platform {
|
||||
None
|
||||
}
|
||||
|
||||
fn hide(&self) {}
|
||||
|
||||
fn hide_other_apps(&self) {}
|
||||
|
||||
fn unhide_other_apps(&self) {}
|
||||
|
||||
fn quit(&self) {}
|
||||
|
||||
fn write_to_clipboard(&self, item: ClipboardItem) {
|
||||
@@ -278,6 +284,10 @@ impl super::Window for Window {
|
||||
}
|
||||
|
||||
fn show_character_palette(&self) {}
|
||||
|
||||
fn minimize(&self) {}
|
||||
|
||||
fn zoom(&self) {}
|
||||
}
|
||||
|
||||
pub fn platform() -> Platform {
|
||||
|
||||
Reference in New Issue
Block a user