mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-27 12:34:14 +02:00
b57c37ca62
Hold the right button on a folio and drag: a ring appears around the point where the button went down, showing up to eight commands, and the one in the mouse's direction is highlighted with its name underneath. Releasing runs it; releasing near the centre cancels. These are SolidWorks' mouse gestures. The commands are the shortcut bar's for the selection, placed clockwise from the top, so customising the bar customises the ring. As with the context menu, a right press selects what is under the mouse first. A plain right click still opens the context menu, now on release on every platform. The view tracks the right button and opens the menu itself; the platform's own right-click event (sent on press on X11, on release on Windows) is ignored while gestures are on, so the menu is never opened twice. The keyboard menu is unchanged. The view keeps out of the way while a tool or a placement is running, since a right click cancels or finishes those, and while a text is being edited. The new General option "Gestes de la souris avec le bouton droit" (diagrameditor/mouse_gestures, on by default) turns it off and restores the previous right button exactly. Discussion #1033. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G2d2Zi8BfrYRPX88zhaoFG (cherry picked from commit a625142f36e619bb4d4f3551b6086f2dd8eabc86)