Draft: fixed focus on first field when starting a draft command

This commit is contained in:
Yorik van Havre 2015-12-26 13:45:09 -02:00
parent 93ccc88f74
commit 08b79eb4dd

View File

@ -1717,6 +1717,8 @@ class DraftToolBar:
self.xValue.setText(displayExternal(v.x,self.DECIMALS,'Length'))
self.yValue.setText(displayExternal(v.y,self.DECIMALS,'Length'))
self.zValue.setText(displayExternal(v.z,self.DECIMALS,'Length'))
self.xValue.setFocus()
self.xValue.selectAll()
def changeAngleValue(self,d):
v = FreeCAD.Vector(self.x,self.y,self.z)
@ -1726,6 +1728,8 @@ class DraftToolBar:
self.xValue.setText(displayExternal(v.x,self.DECIMALS,'Length'))
self.yValue.setText(displayExternal(v.y,self.DECIMALS,'Length'))
self.zValue.setText(displayExternal(v.z,self.DECIMALS,'Length'))
self.xValue.setFocus()
self.xValue.selectAll()
def toggleAngle(self,bool):
self.alock = self.angleLock.isChecked()