Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeCAD
FreeCAD
Commits
b76da408
Commit
b76da408
authored
Sep 01, 2022
by
0penBrain
Committed by
Chris Hennes
Sep 13, 2022
Browse files
[Bugfix]Sketcher: prevent dangling state of Shift key if key released out of Quarter
parent
1059dd4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
View file @
b76da408
...
...
@@ -511,12 +511,6 @@ bool ViewProviderSketch::keyPressed(bool pressed, int key)
return
false
;
}
break
;
case
SoKeyboardEvent
::
LEFT_SHIFT
:
if
(
Mode
<
STATUS_SKETCH_UseHandler
)
{
editCoinManager
->
setConstraintSelectability
(
!
pressed
);
return
true
;
}
[[
fallthrough
]];
default:
{
if
(
isInEditMode
()
&&
sketchHandler
)
...
...
@@ -1081,6 +1075,16 @@ bool ViewProviderSketch::mouseMove(const SbVec2s &cursorPos, Gui::View3DInventor
// maximum radius for mouse moves when selecting a geometry before switching to drag mode
const
int
dragIgnoredDistance
=
3
;
static
bool
selectableConstraints
=
true
;
if
(
Mode
<
STATUS_SKETCH_UseHandler
)
{
bool
tmpSelCons
=
QApplication
::
keyboardModifiers
()
&
Qt
::
ShiftModifier
;
if
(
tmpSelCons
!=
!
selectableConstraints
)
{
selectableConstraints
=
!
tmpSelCons
;
editCoinManager
->
setConstraintSelectability
(
selectableConstraints
);
}
}
if
(
!
isInEditMode
())
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment