Bug 153302 - Function Suggestion: hotkey contains 'serial' key combinations
Summary: Function Suggestion: hotkey contains 'serial' key combinations
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.5.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 140873 (view as bug list)
Depends on:
Blocks: Customize-Dialog-Keyboard
  Show dependency treegraph
 
Reported: 2023-02-01 10:44 UTC by Jeffrey Mao
Modified: 2023-10-17 11:33 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Mao 2023-02-01 10:44:31 UTC
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
Comment 1 Heiko Tietze 2023-02-16 11:40:25 UTC
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.
Comment 2 jan d 2023-02-28 17:48:34 UTC
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)
Comment 3 Jeffrey Mao 2023-03-01 00:36:05 UTC
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
Comment 4 Dieter 2023-03-01 00:43:43 UTC
(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.
Comment 5 Heiko Tietze 2023-03-09 17:04:01 UTC
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.
Comment 6 Heiko Tietze 2023-10-17 11:33:05 UTC
*** Bug 140873 has been marked as a duplicate of this bug. ***