Topic: [0.200.1-dev] Spacebar rotation doesn't work before placing the first

Hello,

In QElectroTech v0.200.1-dev (tested on both Windows and macOS), pressing the Spacebar to rotate an element while dragging/hovering it over the diagram before placing it does not work initially.

Steps to reproduce:
1. Drag an element from the elements collection panel onto the diagram area.
2. Before clicking to place it, press the Spacebar to rotate it -> Nothing happens (tested in both Spanish and English UI, across Windows and macOS).
3. Once you click to place the first element, the next floating element in continuous placement mode CAN be rotated normally with the Spacebar.

Workaround / Root cause clue:
While holding the floating element before placing it, if you click once on the diagram's title bar (or header area), the keyboard focus transfers from the collection panel to the diagram view, and the Spacebar rotation immediately starts working before placing the element.

Since this happens identically on both Windows and macOS, it looks like a cross-platform Qt focus issue where DiagramView does not automatically grab keyboard focus when dragging an element from the collection tree.

Best regards.

Re: [0.200.1-dev] Spacebar rotation doesn't work before placing the first

Thanks for the detailed report and the workaround, you are right: it is a keyboard focus problem.

When the element is dropped, the diagram view does ask for the focus, but at that moment the drag is not finished yet. On Windows and macOS, the end of the drag gives the focus back to the elements panel, so Space never reaches the diagram until you click on it. On Linux the drag does not do that, which is why we did not see it.

I have a fix: the diagram view now takes the focus back as soon as the mouse moves over the folio while you are placing an element. It will be in the next nightly builds once tested.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !