From 3d584beee2e087dbe23e39d1ecc79bd17782af92 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Wed, 28 Mar 2018 14:42:05 +0200 Subject: [PATCH] keyboard: Highlight hacks --- inputcontext/QskInputCompositionModel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inputcontext/QskInputCompositionModel.cpp b/inputcontext/QskInputCompositionModel.cpp index 4eb112e8..3a9b8961 100644 --- a/inputcontext/QskInputCompositionModel.cpp +++ b/inputcontext/QskInputCompositionModel.cpp @@ -261,7 +261,9 @@ void QskInputCompositionModel::moveCursor( Qt::Key key ) // ### this should be in the panel: QKeyEvent moveCursorPress( QEvent::KeyPress, key, Qt::NoModifier ); QKeyEvent moveCursorRelease( QEvent::KeyRelease, key, Qt::NoModifier ); +#if 1 QFocusEvent focusIn( QEvent::FocusIn ); // hack to display the cursor +#endif QCoreApplication::sendEvent( m_data->inputItem, &focusIn ); QCoreApplication::sendEvent( m_data->inputItem, &moveCursorPress ); QCoreApplication::sendEvent( m_data->inputItem, &moveCursorRelease );