Skip to content

Commit

Permalink
[FEATURE] #103529 - Introduce hotkey for "Save and Close" (#173)
Browse files Browse the repository at this point in the history
* [FEATURE] #103529 - Introduce hotkey for "Save and Close"

res: TYPO3-Documentation/Changelog-To-Doc#887
Releases: main

* [TASK] Add tips with reference to Keyboard commands in several Content Element Docs.

releases: main, 12.4

* [FIX] Renaming the headline to not irritate users (could think of RTE shortcuts)

releases: main

* [FIX] Outsource tip into include File, renaming to backend forms in the tip similar to the headline in Keyboard Commands Page.

* [FIX] Rename include file due to check fail

* Apply suggestions from code review

---------

Co-authored-by: Stefan Frömken <froemken@gmail.com>
  • Loading branch information
sfinnerWco and froemken authored Aug 5, 2024
1 parent b7b4ea7 commit 260d62d
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Documentation/ContentElements/Content/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ Highlighted areas will then show you where you can drop it.

You can move a content element from one page to another in the :guilabel:`Web
> List` module using cut and paste. Refer to the :ref:`clipboard chapter <clipboard>` for information about using the clipboard in the :guilabel:`List` module.

.. include:: /ContentElements/TipKeyboardCommands.rst.txt
2 changes: 2 additions & 0 deletions Documentation/ContentElements/CreatingContent/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,5 @@ Add new content to a page
:class: with-shadow

The new content element appears in the Page module

.. include:: /ContentElements/TipKeyboardCommands.rst.txt
2 changes: 2 additions & 0 deletions Documentation/ContentElements/EditingContent/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ display different input fields.

This action does not delete content. It is saved in the background and will be
restored if you select the applicable content element type again.

.. include:: /ContentElements/TipKeyboardCommands.rst.txt
2 changes: 2 additions & 0 deletions Documentation/ContentElements/Images/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,5 @@ Behavior
--------

Use the :guilabel:`Enlarge on Click` setting to enable a lightbox display for the image.

.. include:: /ContentElements/TipKeyboardCommands.rst.txt
2 changes: 2 additions & 0 deletions Documentation/ContentElements/Media/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ start playing as soon as the page loads.
You can configure various settings for media files (for example, adding a
border, setting page position and behavior) just as you would to
:ref:`configure an image<Configure-the-image>`.

.. include:: /ContentElements/TipKeyboardCommands.rst.txt
2 changes: 2 additions & 0 deletions Documentation/ContentElements/RichTextEditor/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ Removing a link

To remove a link from text, put your cursor anywhere in the linked text then
click the :guilabel:`Unlink` icon on the toolbar.

.. include:: /ContentElements/TipKeyboardCommands.rst.txt
5 changes: 5 additions & 0 deletions Documentation/ContentElements/TipKeyboardCommands.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.. tip::

If you are more comfortable using shortcuts, there are different kinds of
:ref:`keyboard commands <keyboard_commands>` you can use in
the backend forms.
14 changes: 14 additions & 0 deletions Documentation/HelpInside/KeyboardCommands/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ the guidelines set out in `WAI-ARIA Authoring Practices 1.1. <https://www.w3.org
* :kbd:`Right` arrow key will expand the focus if possible.
* :kbd:`Left` arrow key will close the focus if possible.

Actions in backend forms
=========================

.. tabs::

.. group-tab:: Windows / Linux

* :kbd:`ctrl` + :kbd:`s` = Save
* :kbd:`ctrl` + :kbd:`shift` + :kbd:`s` = Save and close

.. group-tab:: macOs

* :kbd:`cmd (⌘)` + :kbd:`s` = Save
* :kbd:`cmd (⌘)` + :kbd:`shift` + :kbd:`s` = Save and close

Editing text in the Rich Text Editor (RTE)
==========================================
Expand Down

0 comments on commit 260d62d

Please sign in to comment.