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
|
@ -1319,6 +1319,11 @@ impl MutableAppContext {
|
|||
window.zoom();
|
||||
}
|
||||
|
||||
pub fn toggle_window_full_screen(&self, window_id: usize) {
|
||||
let (_, window) = &self.presenters_and_platform_windows[&window_id];
|
||||
window.toggle_full_screen();
|
||||
}
|
||||
|
||||
fn prompt(
|
||||
&self,
|
||||
window_id: usize,
|
||||
|
@ -3683,6 +3688,10 @@ impl<'a, T: View> ViewContext<'a, T> {
|
|||
self.app.zoom_window(self.window_id)
|
||||
}
|
||||
|
||||
pub fn toggle_full_screen(&self) {
|
||||
self.app.toggle_window_full_screen(self.window_id)
|
||||
}
|
||||
|
||||
pub fn prompt(
|
||||
&self,
|
||||
level: PromptLevel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue