Bug 150130 - Form Controls: Wrong context menu of a form in a specific situation (Steps in comment 6)
Summary: Form Controls: Wrong context menu of a form in a specific situation (Steps in...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2022-07-25 05:54 UTC by Ido
Modified: 2022-08-10 14:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ido 2022-07-25 05:54:40 UTC
Description:
Form navigator right click menu incorrect in some situations

Steps to Reproduce:
1. Start new writer document and activate Design Mode
2. add a field and open Form Navigator
3. In navigator select the field with left click then right click on top level "Forms"

Actual Results:
The "Forms" element is selected but the pop-up menu has content for a field. Close menu by left clicking on "Forms" and right click again the wrong menu is shown again. Select/Left click another element then select/left click "Forms" then right click to show correct popup menu

Expected Results:
Show correct menu when selecting element with right click.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Similar issues when selecting field inside the document while "Forms" is active selection in Form Navigator. Selecting field in document activates the field in the navigator but a right click on the activated field shows the pop-up menu for the "Forms" element.
Becomes very annoying when cut/paste fields between forms; you click a field in the form to locate it in the navigator but then you have to deselect/select it again in the navigator for cut/paste to work.

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-NZ (en_NZ); UI: en-US
Calc: CL
Comment 1 Dieter 2022-08-09 06:15:46 UTC
Ido, thank you for reporting the bug. I must admit, I can't follow the steps:
1. I've added a field (I've choosed "Numeric Field"), but I can't find "Form Navigator". I can't find it in context menu, in regular navigator, in form controls. I can see Form Navigation, but I think that is something different.

Could you please specify your steps? Thank you.
=> NEEDINFO
Comment 2 Ido 2022-08-09 06:31:04 UTC
Hi, Form Navigator is both in the From Design toolbar (next to Form Properties) and in the Form menu 4th from the bottom.

Cheers
Comment 3 Dieter 2022-08-09 13:09:40 UTC
O. K., I think I got it:

Form is selected.
Right click within form navigator window give a different reswult than right click outside form navigator. Is this a correct decription of your problem?

I'm not sure, if it it a bug or the correct behaviour, but personally I won't expect the same context menu here.
Comment 4 Ido 2022-08-10 00:12:20 UTC
In the Form Navigator if you left click at the top level Forms then right click to open the menu you see options (New, Open in Design Mode, Automatic Control Focus).

If you left click on a form Item and the right click to open the menu you see options (Replace with, Cut, Delete, Rename, Properties)

This is the expected and correct behavior.

Now if I select the top Forms element in the Navigator and then left click on the field element inside the document the Form navigator highlights the field as if it is selected. If I then right click on the field element in the Form Navigator for the pop-up menu I get options (New, Open in Design Mode, Automatic Control Focus) this is the problem... 

I need to access to "cut" option to move the field to a different sub-form. 

If I then left click on the name of the field I get into name editing mode (which I don't need and has a different right click popup menu as well). If I left click on the field icon then right click I still get the wrong menu, I have to select a different field or form in the navigator then left click the field I need and right click to get to the expected menu. This becomes hard to explain to the users I need to teach how to design a form with OO.
Comment 5 QA Administrators 2022-08-10 03:35:15 UTC Comment hidden (obsolete)
Comment 6 Dieter 2022-08-10 14:28:51 UTC
Now I understand and confirm the problem with

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps in short
1. create a form control or open a document with a form control
2. Form -> Form Navigator
3. Left click on the form item
4. Right click on form item: context menu with following options: Replace with, Cut, Delete, Rename, Properties (expected)
5. Deselect form
6. Select top entry in the form navigator ("Forms")
7. In the document select form (form item is also highlighted in form navigator)
8. Right click on form item in form navigator

Actual result:
Context menu with the following options: New, Open in Design Mode, Automatic Control Focus (context menu of "Forms" entry)

Expected result:
Context menu with following options: Replace with, Cut, Delete, Rename, Properties (same result as after step 4)