keyboard: Highlight hacks

This commit is contained in:
Peter Hartmann 2018-03-28 14:42:05 +02:00
parent 2951523aaf
commit 3d584beee2
1 changed files with 2 additions and 0 deletions

View File

@ -261,7 +261,9 @@ void QskInputCompositionModel::moveCursor( Qt::Key key )
// ### this should be in the panel: // ### this should be in the panel:
QKeyEvent moveCursorPress( QEvent::KeyPress, key, Qt::NoModifier ); QKeyEvent moveCursorPress( QEvent::KeyPress, key, Qt::NoModifier );
QKeyEvent moveCursorRelease( QEvent::KeyRelease, key, Qt::NoModifier ); QKeyEvent moveCursorRelease( QEvent::KeyRelease, key, Qt::NoModifier );
#if 1
QFocusEvent focusIn( QEvent::FocusIn ); // hack to display the cursor QFocusEvent focusIn( QEvent::FocusIn ); // hack to display the cursor
#endif
QCoreApplication::sendEvent( m_data->inputItem, &focusIn ); QCoreApplication::sendEvent( m_data->inputItem, &focusIn );
QCoreApplication::sendEvent( m_data->inputItem, &moveCursorPress ); QCoreApplication::sendEvent( m_data->inputItem, &moveCursorPress );
QCoreApplication::sendEvent( m_data->inputItem, &moveCursorRelease ); QCoreApplication::sendEvent( m_data->inputItem, &moveCursorRelease );