Add zed::ToggleFullScreen bound to ctrl-cmd-f
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user