changeset 20303:efe22f9b53a3 stable

qt toolkit: set keyboard focus in canvas (Bug #44832) * libgui/graphics/GLCanvas.cc (GLCanvas::GLCanvas): call setFocus
author John Donoghue
date Mon, 22 Jun 2015 12:06:53 -0400
parents 5c42ff6f0eb1
children dc74b700cdec
files libgui/graphics/GLCanvas.cc
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/graphics/GLCanvas.cc	Mon Jun 15 10:24:13 2015 -0700
+++ b/libgui/graphics/GLCanvas.cc	Mon Jun 22 12:06:53 2015 -0400
@@ -46,6 +46,7 @@
 #endif
 {
   setFocusPolicy (Qt::ClickFocus);
+  setFocus();
 }
 
 GLCanvas::~GLCanvas (void)