New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FREE SNAP toll doesn't work when pressing Spacebar #1753
Comments
I don't remember this feature. I suppose it's a shortcut of the spacebar: The shortcut should switch between the current snap mode and snap free. Sounds like a new feature to me. |
It can be enabled via Options -> Application Preferences -> Defaults, Keyboard Settings: "Toggle free snap mode when SPACE BAR is pressed" (my version of LC is 2.2.1_alpha-241-g871768d7). |
The spacebar was used to activate the command widget otherwise. If (Options -> Application Preferences -> Defaults -> " Toggle free snap mode when SPACE BAR is pressed") is set, spacebar won't trigger activate the command line (use Ctl-M,or Key_Colon ':' to activate the command line). If the option is not set, pressing spacebar would activate the command widget. As other application preferences, need to restart the application after this option change.
It's enabled but it doesn't work as it should here |
Did you restart the app after enabling it? |
Yes, and it still has no changes on the behavior |
Confirmed, also with Version: 2.2.1_alpha-369-g1d3b0f18. With "Toggle free snap ..." enabled in Appl Prefs, pressing the [Space Bar] activates the command line. And, it happens even if "Evaluate commands..." is disabled (both "Keyboard Settings" are disabled). |
Also allow space within command line editor
Version: 2.2.1_alpha-371-gf277540d, drawing window is active, and a command is typed ("li") and then [Space bar] is pressed:
NB:
|
I realized enabling space in command line to trigger snapping free is bad. One action should have only one meaning. Typing space in command line shouldn't mean evaluation or snapping free. It should be instinctive: Space bar triggers snapping free only if command line is NOT activated. We need to disable activating command line then by space in this case. Typing a space in command line should mean space, instead of evaluating. But using space to evaluate is already a feature, I won't touch it. |
I ensured that the drawing window still had focus when pressing the space bar in all cases. While the command, 'li' , did appear at the command line, the command line dock did not have focus and no space was entered (as expected). |
1. Only allow this feature when command line is not activated; 2. Added command line messages
With 1160d67 , this feature is only triggered when the command line is not activated, and a command message is displayed when snapping is changed. This way, this feature is independent from triggering evaluating by space, by difference in the command line focus. |
Pressing the [Space bar] ... Free Snap enabled on toolbar:
Free Snap disabled on toolbar:
NB: |
Works as intended to me. Snap free within the toolbar actually has the lowest priority: Only when other snapping candidate not available in range, free snapping is used; this is actually logical, otherwise, snapping free must be exclusive with other snapping modes, but the end user knows combination of modes can be used. The spacebar snapping free is disabling all other snapping modes other than snapping free, so it's completely free. |
"Works as intended" <- perfect. It makes sense to me... |
FREE SNAP toll doesn't work when pressing Spacebar
Expected behavior
Enabling and disabling freesnap when press spacebar
Observed behavior
Nothing happens
Operating System and LibreCAD version info
Version: 2.2.1_alpha-360-ge0f8a4e0
Compiler: GNU GCC 13.2.0
Compiled on: Mar 28 2024
Qt Version: 5.15.2
Boost Version: 1.75.0
System: Windows 10 Version 2009
The text was updated successfully, but these errors were encountered: