Add zed::ToggleFullScreen
bound to ctrl-cmd-f
This commit is contained in:
parent
61684e693f
commit
b94366ab90
6 changed files with 31 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue