Interactive widgets shortcuts not working after creation of the filter
Just after the creation of a filter that uses interactive widget, picking cannot be done.
Steps to reproduce :
- Create a sphere, Apply
- Create a Ruler, do NOT apply and do NOT interact with the render view
- Try picking with '1' or '2' key : FAILS
- interact with the render view
- Try picking with '1' or '2' key : SUCCEED
Related to: !5875 (merged)
At https://gitlab.kitware.com/paraview/paraview/-/blob/8dd819e41ab3918aef3bf775d1c7de466fb00d51/Qt/Components/pqShortcutDecorator.cxx#L120 , replacing
shortcut->setEnabled(true, m_allowRefocus);
by
shortcut->setEnabled(true, true);
solves the issue but this is an ugly fix