Commit 5ee13378 authored by Stefan Philips's avatar Stefan Philips

[MERGE]

parents 16ac7272 2747f686
...@@ -8,9 +8,10 @@ Dirk Albrecht ...@@ -8,9 +8,10 @@ Dirk Albrecht
Gerald Sommer Gerald Sommer
Marcus Stuber Marcus Stuber
Mario Hlawitschka Mario Hlawitschka
Matthias Berndt
Matthias Klose
Patrick Oesterling
Robert Frohl Robert Frohl
Robin Ledig Robin Ledig
Sebastian Kiunke Sebastian Kiunke
Stefan Philips Stefan Philips
Matthias Klose
Matthias Berndt
...@@ -245,6 +245,11 @@ int WQtGLWidget::translateButton( QMouseEvent* event ) ...@@ -245,6 +245,11 @@ int WQtGLWidget::translateButton( QMouseEvent* event )
void WQtGLWidget::keyPressEvent( QKeyEvent* event ) void WQtGLWidget::keyPressEvent( QKeyEvent* event )
{ {
// we ignore auto-repeated keys independent of the window manager settings
if( event->isAutoRepeat() )
{
return;
}
if( event->text() != "" ) if( event->text() != "" )
{ {
m_Viewer->keyEvent( WGEViewer::KEYPRESS, *event->text().toAscii().data() ); m_Viewer->keyEvent( WGEViewer::KEYPRESS, *event->text().toAscii().data() );
...@@ -267,6 +272,11 @@ void WQtGLWidget::keyPressEvent( QKeyEvent* event ) ...@@ -267,6 +272,11 @@ void WQtGLWidget::keyPressEvent( QKeyEvent* event )
void WQtGLWidget::keyReleaseEvent( QKeyEvent* event ) void WQtGLWidget::keyReleaseEvent( QKeyEvent* event )
{ {
// we ignore auto-repeated keys independent of the window manager settings
if( event->isAutoRepeat() )
{
return;
}
switch( event->key() ) switch( event->key() )
{ {
case Qt::Key_Period: case Qt::Key_Period:
......
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