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
|
@ -51,6 +51,7 @@ actions!(
|
|||
ShowAll,
|
||||
Minimize,
|
||||
Zoom,
|
||||
ToggleFullScreen,
|
||||
Quit,
|
||||
DebugElements,
|
||||
OpenSettings,
|
||||
|
@ -88,6 +89,11 @@ pub fn init(app_state: &Arc<AppState>, cx: &mut gpui::MutableAppContext) {
|
|||
cx.zoom_window();
|
||||
},
|
||||
);
|
||||
cx.add_action(
|
||||
|_: &mut Workspace, _: &ToggleFullScreen, cx: &mut ViewContext<Workspace>| {
|
||||
cx.toggle_full_screen();
|
||||
},
|
||||
);
|
||||
cx.add_global_action(quit);
|
||||
cx.add_global_action(move |action: &OpenBrowser, cx| cx.platform().open_url(&action.url));
|
||||
cx.add_global_action(move |_: &IncreaseBufferFontSize, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue