Bug 152978 - [UI/UX enhancement] Open object preferences or options with F4 (and add description to context menus)
Summary: [UI/UX enhancement] Open object preferences or options with F4 (and add descr...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillDesign, topicDesign
Depends on:
Blocks: Shortcuts-Accelerators
  Show dependency treegraph
 
Reported: 2023-01-11 12:13 UTC by Piotr Osada
Modified: 2023-01-20 03:23 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
F4 as shortcut to properties of objects.odt (626.63 KB, application/vnd.oasis.opendocument.text)
2023-01-11 12:14 UTC, Piotr Osada
Details
1 F4 keyborad shortcut for an image.png (430.91 KB, image/png)
2023-01-11 12:21 UTC, Piotr Osada
Details
2 F4 shortcut in navigator.png (516.01 KB, image/png)
2023-01-11 12:21 UTC, Piotr Osada
Details
3 lack of F4 shortcut for other elements context menus.png (284.96 KB, image/png)
2023-01-11 12:22 UTC, Piotr Osada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Osada 2023-01-11 12:13:07 UTC
Description:
Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: en-GB
Calc: threaded

When we right-click on the image, in the context menu we will see "Properties ... F4" (last entry). And the F4 key opens these options.

But other objects like frames and tables also have their properties but we can't access them by pressing F4. IMO it's inconsistency.

And for me it would be nice to add the F4 shortcut (and the caption in the context menu) to open the preferences/options/edit window for all objects that might be affected. Eg. context menu for objects on pages and in the navigator.

Steps to Reproduce:
-

Actual Results:
-

Expected Results:
-


Reproducible: Always


User Profile Reset: No

Additional Info:
-
Comment 1 Piotr Osada 2023-01-11 12:14:13 UTC
Created attachment 184588 [details]
F4 as shortcut to properties of objects.odt
Comment 2 Piotr Osada 2023-01-11 12:21:40 UTC
Created attachment 184589 [details]
1 F4 keyborad shortcut for an image.png
Comment 3 Piotr Osada 2023-01-11 12:21:53 UTC
Created attachment 184590 [details]
2 F4 shortcut in navigator.png
Comment 4 Piotr Osada 2023-01-11 12:22:04 UTC
Created attachment 184591 [details]
3 lack of F4 shortcut for other elements context menus.png
Comment 5 Roman Kuznetsov 2023-01-11 19:49:51 UTC
We use F4 for cell link mode change in Calc. I'm not sure we need F4 for another action..
Comment 6 Heiko Tietze 2023-01-12 09:48:59 UTC
Shortcuts are defined in officecfg/registry/data/org/openoffice/Office/Accelerators.xcu. 

DataSourceBrowser > .uno:DBQueryPreview
SpreadsheetDocument > .uno:ToggleRelative
ChartDocument > .uno:TransformDialog
DrawingDocument > .uno:TransformDialog
text.GlobalDocument > .uno:GraphicDialog
PresentationDocument > .uno:TransformDialog
FormulaProperties > .uno:NextMark
text.WebDocument > .uno:GraphicDialog
text.TextDocument > .uno:GraphicDialog
XMLFormDocument > .uno:GraphicDialog
ReportDefinition > .uno:ControlProperties

And we can use only one per module. Meaning this requires a new UNO command, something like .uno:ObjectProperties, which could then be assigned per module to F4. Quite some effort.

And changing a shortcut comes on cost for people familiar with other associations such as the mentioned ToggleRelative or the TransformDialog.

OTOH it's a tempting idea to consolidate behavior. What do you think, Maxim?
Comment 7 Piotr Osada 2023-01-12 10:55:04 UTC
Yes, F4 would be colliding in Calc. 

In Calc Ctrl+1 is to enter 'Format Cells' options,
but in Writer Ctrl+1 is used to change the style to "Heading 1".
Comment 8 Cor Nouws 2023-01-18 16:25:52 UTC
I appreciate the idea.
Consistency, all modules, OK .. but maybe with little effort already some occasions can be improved.
Comment 9 Heiko Tietze 2023-01-19 08:18:33 UTC
We discussed the topic in the design meeting.

Reducing inconsistency is beneficial per se and one option could be to add the shortcut in Writer too. 

Usually precious function key shortcuts should be used for global functions that are available without context (respectively at most). For example, F2 goes into edit mode, F6 traverse over UI elements for accessibility, etc. Assigning F4 to _any_ contextual property would be according to this guideline. Challenging, however, since "property" is a wide term and focusing on a line is different to areas, to images, on paragraphs, etc. 

In the end the majority in the meeting recommended to go the easy way. That is to change the shortcut in Writer to comply with the other modules (but keep it in Calc).

Code pointer:
In officecfg/registry/data/org/openoffice/Office/Accelerators.xcu below
<node oor:name="com.sun.star.text.TextDocument" oor:op="replace"> the node
<node oor:name="F4" oor:op="replace"> needs to be changed from .uno:GraphicDialog to .uno:TransformDialog. The same for

text.GlobalDocument > .uno:GraphicDialog
text.WebDocument > .uno:GraphicDialog
text.TextDocument > .uno:GraphicDialog
XMLFormDocument > .uno:GraphicDialog