Commit 5febb75c authored by Sylvain Thery's avatar Sylvain Thery

bug of focus loosing: resolved

parent 43b1b8e7
......@@ -211,6 +211,7 @@ void GLWidget::mousePressEvent(QMouseEvent* event)
if (m_cbs)
m_cbs->cb_mousePress(event->button(), event->x(), getHeight() - event->y());
setFocus(Qt::MouseFocusReason);
}
void GLWidget::mouseReleaseEvent(QMouseEvent* event)
......@@ -330,7 +331,10 @@ void GLWidget::closeEvent(QCloseEvent *event)
void GLWidget::keyPressEvent(QKeyEvent* event)
{
if (event->key() == Qt::Key_Escape)
{
close();
m_cbs->close();
}
m_state_modifier = event->modifiers();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment