Skip to content

Commit 0d965f9

Browse files
committed
After load the canvas should have focus
1 parent 6aebe82 commit 0d965f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SKIA-WX-GPU-SVG-Viewer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def on_open_file(self, event):
214214
self.canvas.svg_picture = skia.SVGDOM.MakeFromStream(svgstream)
215215
self.canvas.svg_size = self.canvas.svg_picture.containerSize()
216216
self.canvas.Refresh()
217+
self.canvas.SetFocus()
217218
except Exception as e:
218219
wx.LogError(f"Cannot open file '{path}'.\n{str(e)}")
219220

0 commit comments

Comments
 (0)