https://bugs.documentfoundation.org/show_bug.cgi?id=147363

--- Comment #2 from Rafael Lima <rafael.palma.l...@gmail.com> ---
Indeed this happens with "win" and "gtk3", however I could not reproduce this
bug with "gen" and "kf5".

It seems that, when the dialog is shown with "win" and "gtk3", no widget
receives focus by default, thus causing this error (see that the top level of
the .ui file was used as HID svx/ui/formpropertydialog/FormPropertyDialog).
Then on the second attempt, a widget receives focus and pressing F1 works using
the HID associated with the widget.

However, in "gen" and "kf5" one of the widgets gets focus by default when the
dialog opens for the first time, and the corresponding HID is used, thus
preventing the problem. I'm saying this because this problem possibly happens
in many more dialogs.

What I'm planning to do is define the appropriate HID for each tab when no
widget is selected. However, this specific dialog a a bit trickier.

The dialog UI file is (which only has the main frame that will contain the
tabs):
https://opengrok.libreoffice.org/xref/core/svx/uiconfig/ui/formpropertydialog.ui

The dialog implementation is in:
https://opengrok.libreoffice.org/xref/core/svx/source/form/fmPropBrw.cxx

However I cannot find where the tabs are defined/created. They do not seem to
have their own .ui files, nor could I find where they are created anywhere
else.

@Xisco could you provide some pointer to where these tabs are created?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to