Description: 1. Any current hotkey combination includes only one-time key presses, like Ctrl-N, Ctrl-Shift-A. 2. Is it possible to provide a 'serial' key combinations, like 'Ctrl-N,1' which means 'first we press Ctrl-N, release them, and followed immediately by pressing 1' ? 3. Scenario for this suggestion: (a) I have lots of similar Styles, TextIndent0, TextIndent1, TextIndent2, ..., and Title1, Title2, Title3, etc. This would be easy for us to stick the leading combination 'Ctrl-N' with the style TextIndex* and clear to map following keypress '1' onto that sub-style TextIndent1. (b) This function also significantly enlarges the available key combinations for a large number of styles. Thanks for providing us LibreOffice - the comprehensive OA software! Sincerely, Steps to Reproduce: (N/A) Actual Results: (N/A) Expected Results: (N/A) Reproducible: Always User Profile Reset: No Additional Info: Version: 7.4.5.1 (x86) / LibreOffice Community Build ID: 9c0871452b3918c1019dde9bfac75448afc4b57f CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win Locale: zh-TW (zh_TW); UI: zh-TW Calc: CL
Shortcuts are indeed badly implemented and lack, for example, of locale, non-ASCII keys (bug 115052, UI redesign at bug 115527). The implementation defines an accelerator including modifier keys like "KEY_MOD1 | KEY_F" (see cui/source/customize/acccfg.cxx) and allows to bind this as F_MOD1 to any UNO command in officecfg/registry/data/org/openoffice/Office/Accelerators.xcu. There is no room for sequences. And your own styles don't have a UNO command assigned. Besides the need to improve the internal key handling from ground I don't see sequences as a good solution. It works for mnemonics where you press alt+F+O to open a document. But these mnemonics are clearly visible via underlined keys (depending on OS/DE). Sequences make things overly complex.
At least under Windows, the Ctrl Key combinations are one-time-presses without gui support and the Alt-combinations are sequencial with GUI support: Pressing the keys traverses the menus. Thus, you can also access styles, even custom ones, that get a keyboard shortcut assigned as soon as they are added to the menus: e.g. when I create a style called "supercustomstyle" and add this to the styles menu (vis tools/customize), I can now press alt→y→p (since it automatically gets resolved to "p", since "s" and "u" are already taken)
Thank you all for your suggestions that help me to work around. Yes, I'd been trying casicated menu items, eg., (S)tyles/I(n)dentTexts/None(0), 0.5cm(1), 1cm(2), 1.5cm(3)... Learning from all your ideas, that perfectly solves my needs! Thanks! Both to you and the great LibreOffice community. Sincerely, Jeffrey Mao
(In reply to Jeffrey Mao from comment #3) > Learning from all your ideas, that perfectly solves my needs! > Thanks! Both to you and the great LibreOffice community. So let's close report.
We discussed the topic in the design meeting. On the pro, such a feature could help people with a large number of shortcuts, the hierarchy makes it easier to remember, and would be comprehensible as an user-option. The cons are: hard to customize, feedback unclear, burden of implementation and maintenance, restriction not so simple, eg. ctrl+s followed by ctrl+o possible? It would be great if it could be realized per extension. But should remain open as a legitimate request.
*** Bug 140873 has been marked as a duplicate of this bug. ***