I can set a hotkey to Clone Formatting action (a paintbrush button). But there is no possibility to set a hotkey to apply cloned formatting. Pressing the same hotkey again simply cancels Clone Formatting action instead of applying the formatting to a different paragraph. The only way to apply cloned formatting is to click left mouse button. Enter, Space, or other keyboard keys do not apply cloned formatting. In the old version of LibreOffice there was a possibility to paste formatting only using Ctrl-Shift-V key combination, but currently it can only paste text, with or without formatting, there is no option to paste formatting without text. For now I am using a hotkey to apply a specific paragraph style.
I confirm it with Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 42f0422d19c4d0a2fb09654fb6d1d92e50f6dd5c CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL threaded Double click on clone formatting icon alters behaviour, but there is no possibility to get this behaviour with a short key. But I would see it as enhancement request => NEW, but let's check it by the design-team
But this is the workflow: enable, select, apply, (toggle off - clone can become sticky for multi-applications via double-click). If you mean this sticky cloning I would not implement a special command / shortcut for it.
The topic was on the agenda of the design meeting but didn't receive further input. The command .uno:FormatPaintbrush does not suit a keyboard-only workflow, and using a shortcut is pointless. So we should remove that possibility to customize it.
Heiko Tietze committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/05f7ab11bec87b706f598ae4e81d1f20cd4f1312 Resolves tdf#156404 - No hotkey to apply cloned formatting It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
The patch disallows the customization of a shortcut but is not effective due to bug 147411.
*** Bug 157719 has been marked as a duplicate of this bug. ***
If it is forbidden to implement hotkeys for a brush, then maybe there is some other way? Perhaps support for copying only styles could be added to the "Paste Special" selector by writing a new method that would do this. To use the brush you need a mouse, and some users find it more convenient and faster to use only the keyboard and hotkeys. Microsoft Office Word implements copying styles using "ctrl+shift+v", but LO does not have such a function.
VERIFIED with Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: c0c8cffd3541e3cd616c96791b04e7ebf2b2ed03 CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL threaded It's no longer possible to assign shortcut to Clone Formatting command Heiko, thanks for fixing it!
We discussed the topic again in the design meeting. Clone formatting is a complex interaction with single click to apply once and double to apply until escaped (and ctrl+click for PS). This complexity cannot be done with a single UNO command but could if we create something new. Microsoft Word allows to copy per ctrl+shift+C and paste the formatting from this buffer at any time later per ctrl+shift+V. While this makes a lot of sense we do have Repeat (shift+ctrl+Y), which applies the formatting again. Although it does not work if some other action is done in between. Reopening the ticket.