Where are customised shortcut keys saved

If I assign shortcut keys to my common styles, where are they saved are they:

  1. in my configuration, roaming folder or some such
  2. in a template
  3. somewhere else

If they are in my config which file is it and if a shortcut refers to a style not in the currently used template what will happen?

Thank you

Three questions at the same time.

You should know where to find the documentation - here.

@Hrbrgr I have backed up all config files related to LO before I wiped Ubuntu 21.04 and installed Fedora 34. So far I have picked all autocorrect files from backup. Where is my custom shortcut saved? (.config/libreoffice/4/user/?)

For help with config files go here:
https://wiki.documentfoundation.org/UserProfile

To assign keys to styles fo to Tools, Customise, Keyboard then
In the Category list, select Styles e.g. Paragraph Styles.
In the Function list, click on the name of the style.
Select a key combination in the pane above and click Modify.
Click OK to save the change.

@lizat I have backed up all config files related to LO before I wiped Ubuntu 21.04 and installed Fedora 34. So far I have picked all autocorrect files from backup. Where is my custom shortcut saved? (.config/libreoffice/4/user/?)