Add zed::ToggleFullScreen bound to ctrl-cmd-f

This commit is contained in:
Antonio Scandurra 2022-08-15 11:53:37 +02:00
parent 61684e693f
commit b94366ab90
6 changed files with 31 additions and 0 deletions

View file

@ -601,6 +601,18 @@ impl platform::Window for Window {
})
.detach();
}
fn toggle_full_screen(&self) {
let this = self.0.borrow();
let window = this.native_window;
this.executor
.spawn(async move {
unsafe {
window.toggleFullScreen_(nil);
}
})
.detach();
}
}
impl platform::WindowContext for Window {