diff --git a/CHANGELOG.md b/CHANGELOG.md index a80b76a8d91..595e5f61cea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Added the `@stripTags` and `@trim` GraphQL directives. ([#9971](https://github.com/craftcms/cms/discussions/9971)) - Added `SK` to the list of keywords that Craft will look for when determining whether a value is sensitive and should be redacted from logs, etc. ([#3619](https://github.com/craftcms/cms/issues/3619)) - Improved the scrolling behavior for page sidebars and detail panes. ([#13637](https://github.com/craftcms/cms/issues/13637)) +- Filesystem edit pages now have a “Save and continue editing” alternative submit action, and the Command/Ctrl + S keyboard shortcut now redirects back to the edit page. ([#13658](https://github.com/craftcms/cms/pull/13658)) - The `|replace` Twig filter now has a `regex` argument, which can be set to `false` to disable regular expression parsing. ([#13642](https://github.com/craftcms/cms/discussions/13642)) - Added `craft\events\DefineUserGroupsEvent`. - Added `craft\services\Users::EVENT_DEFINE_DEFAULT_USER_GROUPS`. ([#12283](https://github.com/craftcms/cms/issues/12283)) diff --git a/src/controllers/FsController.php b/src/controllers/FsController.php index 73976fb46e5..e0faa107871 100644 --- a/src/controllers/FsController.php +++ b/src/controllers/FsController.php @@ -116,6 +116,11 @@ public function actionEdit(?string $handle = null, ?Fs $filesystem = null): Resp ->addCrumb(Craft::t('app', 'Filesystems'), 'settings/filesystems') ->action('fs/save') ->redirectUrl('settings/filesystems') + ->addAltAction(Craft::t('app', 'Save and continue editing'), [ + 'redirect' => 'settings/filesystems/{handle}', + 'shortcut' => true, + 'retainScroll' => true, + ]) ->contentTemplate('settings/filesystems/_edit.twig', [ 'oldHandle' => $handle, 'filesystem' => $filesystem,