Draft: Draft_Split put focus on 3D view

To make using Esc work properly the 3D view should have the focus.
This commit is contained in:
Roy-043
2024-06-16 16:59:04 +02:00
committed by Chris Hennes
parent 4882a33d46
commit f2d3cf701a

View File

@@ -57,6 +57,7 @@ class Split(gui_base_original.Modifier):
if not self.ui:
return
_toolmsg(translate("draft", "Click anywhere on a line to split it."))
self.view.graphicsView().setFocus() # Make sure using Esc works.
self.call = self.view.addEventCallback("SoEvent", self.action)
def action(self, arg):