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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user