Draft: Fix snap cycling if length input has focus

This commit is contained in:
Roy-043
2021-10-22 19:47:23 +02:00
committed by GitHub
parent 16e797362a
commit 80d0a5e97d

View File

@@ -498,6 +498,7 @@ class DraftToolBar:
self.layout.addLayout(al)
self.labellength = self._label("labellength", ll)
self.lengthValue = self._inputfield("lengthValue", ll)
self.lengthValue.installEventFilter(self.baseWidget) # Required to detect snap cycling if focusOnLength is True.
self.lengthValue.setText(FreeCAD.Units.Quantity(0,FreeCAD.Units.Length).UserString)
self.labelangle = self._label("labelangle", al)
self.angleLock = self._checkbox("angleLock",al,checked=self.alock)