Commit 1c947295ae8d3e5bb163ab49731136079b6590b0
1 parent
4a0a52b6
Exists in
master
and in
35 other branches
Fixed mouse focus on enter editor and watershed
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
invesalius/data/styles.py
... | ... | @@ -117,6 +117,10 @@ class DefaultInteractorStyle(BaseImageInteractorStyle): |
117 | 117 | |
118 | 118 | self.AddObserver("MouseWheelForwardEvent",self.OnScrollForward) |
119 | 119 | self.AddObserver("MouseWheelBackwardEvent", self.OnScrollBackward) |
120 | + self.AddObserver("EnterEvent",self.OnFocus) | |
121 | + | |
122 | + def OnFocus(self, evt, obj): | |
123 | + self.viewer.SetFocus() | |
120 | 124 | |
121 | 125 | def OnZoomRightMove(self, evt, obj): |
122 | 126 | if (self.right_pressed): | ... | ... |